3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'bar'; $t = microtime(true); for ($i=0; $i<10000000; $i++) { is_null($foo); } var_dump(microtime(true) - $t); $t = microtime(true); for ($i=0; $i<10000000; $i++) { $foo === null; } var_dump(microtime(true) - $t);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0080.50916.61
7.3.00.0070.52316.43
7.2.130.0030.56916.73
7.2.120.0170.54916.48
7.2.110.0120.55016.60
7.2.100.0050.53716.55
7.2.90.0140.52116.48
7.2.80.0200.51516.56
7.2.70.0070.51816.61
7.2.60.0150.52116.55
7.2.50.0200.51716.67
7.2.40.0080.51816.83
7.2.30.0110.50516.55
7.2.20.0130.49816.58
7.2.10.0080.52516.39
7.2.00.0110.42517.67
7.1.250.0070.96015.71
7.1.70.0100.30017.13
7.1.60.0070.36119.82
7.1.50.0070.35216.60
7.1.00.0000.50322.30
7.0.200.0030.30816.92
7.0.140.0030.42721.99
7.0.80.0570.34320.01
7.0.70.0530.33019.98
7.0.60.0230.28319.94
7.0.50.0600.36020.29
7.0.40.0070.27720.15
7.0.30.0130.31020.11
7.0.20.0100.41020.04
7.0.10.0070.36720.04
7.0.00.0100.38020.07
5.6.280.0071.46020.89
5.6.230.0031.02020.53
5.6.220.0070.93020.57
5.6.210.0031.00320.49
5.6.200.0071.04020.95
5.6.190.0031.09020.99
5.6.180.0171.02021.10
5.6.170.0031.00021.07
5.6.160.0130.99021.13
5.6.150.0030.88321.05
5.6.140.0031.07021.03
5.6.130.0131.07021.01
5.6.120.0130.85721.05
5.6.110.0070.83321.06
5.6.100.0130.88021.06
5.6.90.0170.99321.01
5.6.80.0131.06720.49
5.6.70.0030.87320.45
5.6.60.0070.83020.28
5.6.50.0171.04020.43
5.6.40.0031.06720.49
5.6.30.0030.99720.42
5.6.20.0030.90020.43
5.6.10.0101.05320.28
5.6.00.0101.05320.29
5.5.370.0030.94720.54
5.5.360.0100.97720.41
5.5.350.0100.87320.36
5.5.340.0030.92720.92
5.5.330.0071.04720.86
5.5.320.0000.95720.88
5.5.310.0131.11020.74
5.5.300.0131.09020.73
5.5.290.0071.05320.80
5.5.280.0071.02320.88
5.5.270.0071.07020.87
5.5.260.0030.86320.89
5.5.250.0031.07720.58
5.5.240.0031.06720.25
5.5.230.0000.84320.26
5.5.220.0600.82320.14
5.5.210.0071.05020.21
5.5.200.0331.02720.25
5.5.190.0101.09020.17
5.5.180.0101.00320.12
5.5.160.0101.08720.25
5.5.150.0000.98319.98
5.5.140.0131.11320.25
5.5.130.0070.88320.22
5.5.120.0000.85720.09
5.5.110.0131.08720.24
5.5.100.0101.02720.01
5.5.90.0031.01720.00
5.5.80.0071.06019.96
5.5.70.0131.07320.03
5.5.60.0101.07320.15
5.5.50.0101.02720.00
5.5.40.0030.96720.05
5.5.30.0071.14320.05
5.5.20.0100.96020.07
5.5.10.0031.10320.05
5.5.00.0030.92020.04
5.4.450.0030.96019.14
5.4.440.0030.88719.11
5.4.430.0031.06319.11
5.4.420.0030.84319.44
5.4.410.0031.03019.22
5.4.400.0070.95718.79
5.4.390.0130.98318.81
5.4.380.0030.93319.03
5.4.370.0070.93019.12
5.4.360.0001.01319.17
5.4.350.0131.13719.14
5.4.340.0001.06019.09
5.4.320.0101.11318.94
5.4.310.0001.15019.05
5.4.300.0070.84718.90
5.4.290.0131.09318.79
5.4.280.0100.88319.02
5.4.270.0030.87319.04
5.4.260.0100.88018.96
5.4.250.0001.11719.05
5.4.240.0100.89319.05
5.4.230.0031.06019.09
5.4.220.0131.05018.94
5.4.210.0030.88719.22
5.4.200.0171.07319.07
5.4.190.0071.09019.13
5.4.180.0031.05018.95
5.4.170.0900.90018.96
5.4.160.0030.85319.04
5.4.150.0000.89318.79
5.4.140.0071.00716.28
5.4.130.0101.04316.13
5.4.120.0030.85716.34
5.4.110.0101.12016.36
5.4.100.0201.11016.45
5.4.90.0071.09316.30
5.4.80.0070.91016.39
5.4.70.0101.03716.22
5.4.60.0000.91316.41
5.4.50.0070.94316.33
5.4.40.0430.88716.41
5.4.30.0030.97016.31
5.4.20.0131.05016.28
5.4.10.0101.05016.20
5.4.00.0070.93715.77
5.3.290.0101.17014.52
5.3.280.0031.07014.45
5.3.270.0001.07014.54
5.3.260.0001.12014.44
5.3.250.0071.05314.56
5.3.240.0031.25314.42
5.3.230.0071.24714.41
5.3.220.0001.06714.52
5.3.210.0071.08014.43
5.3.200.0031.07014.42
5.3.190.0031.13714.42
5.3.180.0031.16314.55
5.3.170.0131.11714.54
5.3.160.0071.27314.38
5.3.150.0131.31014.56
5.3.140.0031.13314.52
5.3.130.0031.21014.54
5.3.120.0101.10314.54
5.3.110.0031.25314.40
5.3.100.0101.27714.02
5.3.90.0031.12013.87
5.3.80.0031.14714.00
5.3.70.0031.26013.96
5.3.60.0031.27013.85
5.3.50.0101.11313.90
5.3.40.0031.27013.86
5.3.30.0101.12313.84
5.3.20.0101.40713.54
5.3.10.0031.18013.65
5.3.00.1001.13013.57
5.2.170.0001.26011.64
5.2.160.0071.18011.64
5.2.150.0071.31011.64
5.2.140.0101.25311.64
5.2.130.0101.36011.64
5.2.120.0031.37311.64
5.2.110.0031.20011.64
5.2.100.0001.26711.64
5.2.90.0001.22711.64
5.2.80.0001.23311.64
5.2.70.0031.42711.64
5.2.60.0101.42311.64
5.2.50.0071.27011.64
5.2.40.0071.26711.64
5.2.30.0131.31311.64
5.2.20.0071.24311.64
5.2.10.0071.28011.64
5.2.00.0031.39311.64
5.1.60.0071.39311.64
5.1.50.0101.43311.64
5.1.40.0001.29711.64
5.1.30.0001.31711.64
5.1.20.0101.44011.64
5.1.10.0001.29311.64
5.1.00.0001.29711.64
5.0.50.0102.49011.64
5.0.40.0072.49311.64
5.0.30.0272.3837.94
5.0.20.0172.4438.03
5.0.10.0102.49011.64
5.0.00.0102.4337.92
4.4.90.0002.44311.64
4.4.80.0002.48311.64
4.4.70.0002.50011.64
4.4.60.0002.50011.64
4.4.50.0132.4235.70
4.4.40.0102.4735.70
4.4.30.0172.3735.68
4.4.20.0002.50011.64
4.4.10.0132.4275.78
4.4.00.0132.4335.81
4.3.110.0102.4175.65
4.3.100.0102.49011.64
4.3.90.0032.49711.64
4.3.80.0272.3535.64
4.3.70.0002.42711.64
4.3.60.0072.49311.64
4.3.50.0072.49311.64
4.3.40.0102.47011.64
4.3.30.0032.49711.64
4.3.20.0002.44711.64
4.3.10.1332.36711.64
4.3.00.0002.50011.64

preferences:
41.53 ms | 400 KiB | 5 Q