It depends on what field of tech we are talking about... Scientifically and technologically both military and civilian Iran is not only centuries ahead of Pakistan but all other Muslim nations combined... but militarily we have to split it down to categories...
Iran is very advanced and on the edge of tech some aspects of military hardware such as Radars, Torpedos, Speed boats, Missile boats, UAVs and UCAVs, Cruise Missiles, Ballistics and on the verge of becoming a pioneer in Electronic warfare, precision weapons, A-A systems, Submarine, Naval ships...
Iran is trying to create a foot print in ground forces weaponry too but although the speed is slow but it is steady and making impressive strides lately... Zolfaghar III tank, Light infantry weapons, light, semi and Heavy snipers, launchers and carriers, precision ammunition, robotic systems and ect are some of Iranian achievements in ground weaponry...
From civilian point of view, Iran is even more advanced in contemporary techs and high-tech ones... Bio-chemistry, Bio-physics, robotics, medicine, aero-space, nano, composites, machinery, heavy industries, engineering are all sometimes THE ONLY ONE in whole region and Islam world..
Pakistan with or without the assistance of its allies is also advanced in some aspects of tech but unfortunately is lacking a lot behind its potential.. I wish soon we can also be proud of Pakistani science and tech... We need more of Islamic nations in order to prove to the world that Islam is in essence a religion of wisdom and science and progress and laziness and backwardness of most of Muslims today does not mean there is something wrong with Islam than the people themselves...
you know Patriotism is good but blind Patriotism is nothing but a emotional way to prove that you are Stupid ..
I admire Iran and its progress despite the Sanctions cause we have been through that as well.. but please don't make us laugh by saying that Iran is Centuries ahead of other Islamic Countries ..
either you are plain ignorant or you miss the point deliberately ...
KSA and Turkey they got the most Advance Air force in Islamic world , and than we have Pakistan Air force ..
weapon System which your country men laugh as a Chinese product is enough to keep a enemy 10 times bigger at bay ..and as for battle tested weapons there are many system which are not yet tested in real combats ..
Missile program of Pakistan is Turkey , if not ahead of Iran than no less than Iran .. you still have a long way to go like Pakistan, Turkey ..
you are flying the 50'60's ear Planes while we are making 4th Gen Fighters in different blocks , and very soon you will be watching block 3 of JF with AESA ..
we are also Operating close to 80 F-16's in which 18 are Block 52's and rest are close to block 52's .. along with Mirage 3 and ROSE capable of carry Nuclear Tipped Ra'ad CM .
Pakistan owns this Project , and we are in progress to build this plane 100% within Pakistan, except for Engines which we are not capable of Making ..
and as for your information , PN is also creating Missiles boats , Azmat class FAC, you have a look at it .its stealth design and so on ... Frigates like F-22P which is not a modern Frigate but good enough compared to other countries .. and surprisingly for Iranians we are creating this whole Frigate in Pakistan ...
as for Submarines , we have build Agosta 90B's , the most Sophisticated Subs in South Asia ...
and recently we have signed a deal of 8 Subs , out of which 4 will be build within Pakistan , and some sources claim that we are looking for 2 types of Subs ..
as for Missiles , we have created and operated Missiles from decades , we are Operating Medium , long and battlefield range Ballistic Missiles , and Cruise missiles named Babur and Ra'ad .. the naval but with longer ranger version is under development from many years ..
we are Operating Armed Drones , which i dont think Iran have ..
we have one of the most Advance Tanks , Multiple Rocket systems and Artillery in South Asia ..
recently we have ordered , 15 AH-Z1 zulus from US worth 1 billion .. and 4 Mi-35E from Russian .. along with Testing the Chinese Z-10's Attack helicopters ..
6 Cutters from US are also on its way ..
the only Pakistan lacks behind is Long Range SAM's , and some Air superiority fighters which we are working on ..
China has Provided HQ-9 SAM to Pakistan as it confirmed of 3 Batteries .. hopefully we will be Ordering more of them ..and in recently we disclosed the New SAM FM-90 , which can be Positioned along Tank Columns to provide Air Cover .
Again , I did not mentioned all these Things because i want to show you that you are Centuries behind us , but you Iranians have to come out of this Superiority Complex , that we are ahead of all Islamic Countries ..