3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = null; $var = new stdClass(); $time1 = microtime(true); for ($i = 0; $i <= 1000000; $i++) { if (!$var) {} } $time1 = microtime(true) - $time1; //echo "Time using '!': $time1\n"; $time2 = microtime(true); for ($i = 0; $i <= 1000000; $i++) { if ($var === null) {} } $time2 = microtime(true) - $time2; //echo "Time using '===': $time2\n"; if ($time1 > $time2) echo '"===" was faster'; else echo ' "!" was faster';

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.4.00.0100.03614.98
7.3.120.0070.03214.83
7.3.110.0100.04114.94
7.3.100.0090.03114.67
7.3.90.0080.02814.98
7.3.80.0030.03514.84
7.3.70.0080.03114.72
7.3.60.0030.03414.86
7.3.50.0100.02614.66
7.3.40.0050.04014.77
7.3.30.0050.04014.74
7.3.20.0070.03216.56
7.3.10.0020.03816.40
7.3.00.0020.03316.64
7.2.250.0050.05015.02
7.2.240.0080.05014.95
7.2.230.0040.04115.00
7.2.220.0050.05115.13
7.2.210.0030.04114.94
7.2.200.0080.03815.09
7.2.190.0070.03815.02
7.2.180.0030.04214.92
7.2.170.0080.03115.09
7.1.330.0050.09815.55
7.1.320.0030.10915.82
7.1.310.0070.08715.91
7.1.300.0080.10215.69
7.1.290.0050.09315.53
7.1.280.0030.10015.76
7.1.270.0020.10115.59
7.1.260.0070.09315.63
7.1.70.0030.03317.30
7.1.60.0160.03619.40
7.1.50.0040.07416.48
7.1.00.0070.10022.45
7.0.200.0100.03816.47
7.0.140.0000.12022.09
7.0.120.0030.12022.05
7.0.60.0030.13019.85
7.0.50.0030.07717.79
7.0.40.0270.10320.20
7.0.30.0330.07020.03
7.0.20.0270.10020.09
7.0.10.0000.08720.17
7.0.00.0070.06720.16
5.6.280.0070.17721.11
5.6.210.0070.17320.64
5.6.200.0100.19018.16
5.6.190.0100.11720.67
5.6.180.0200.12020.62
5.6.170.0300.17720.37
5.6.160.0130.17020.54
5.6.150.0070.16718.15
5.6.140.0070.11718.18
5.6.130.0030.14718.18
5.6.120.0130.11321.00
5.6.110.0000.14320.96
5.6.100.0070.17720.89
5.6.90.0070.19021.11
5.6.80.0030.14720.40
5.5.350.0070.14320.39
5.5.340.0100.14017.89
5.5.330.0070.14720.22
5.5.320.0330.17720.17
5.5.310.0100.12320.20
5.5.300.0130.17318.01
5.5.290.0100.17317.96
5.5.280.0130.12720.68
5.5.270.0030.18320.79
5.5.260.0070.18020.82
5.5.250.0100.18720.54
5.5.240.0300.15720.04
5.4.450.0030.16719.50
5.4.440.0030.14319.44
5.4.430.0030.11719.39
5.4.420.0070.12319.44
5.4.410.0130.16719.31
5.4.400.0030.13019.19
5.4.390.0000.12018.79
5.4.380.0070.14719.18
5.4.370.0030.12018.81
5.4.360.0070.17318.80
5.4.350.0030.17319.18
5.4.340.0100.12019.08
5.4.320.0030.12019.11
5.4.310.0100.17719.18
5.4.300.0070.17719.15
5.4.290.0030.15718.78
5.4.280.0070.16319.05
5.4.270.0130.17019.18
5.4.260.0100.12718.91
5.4.250.0100.13719.13
5.4.240.0100.17319.07
5.4.230.0130.11019.17
5.4.220.0000.18019.17
5.4.210.0100.13719.11
5.4.200.0070.18018.91
5.4.190.0030.13318.78
5.4.180.0070.14318.80
5.4.170.0100.15018.91
5.4.160.0070.12319.09
5.4.150.0070.11719.06
5.4.140.0370.13716.37
5.4.130.0000.17716.36
5.4.120.0070.11316.37
5.4.110.0000.12016.34
5.4.100.0070.11016.37
5.4.90.0230.16316.32
5.4.80.0070.16316.32
5.4.70.0100.17016.22
5.4.60.0070.17316.34
5.4.50.0030.16716.36
5.4.40.0130.11316.20
5.4.30.0070.10716.36
5.4.20.0130.10316.25
5.4.10.0100.15316.12
5.4.00.0000.11315.73
5.3.290.0100.18314.63
5.3.280.0070.18314.52
5.3.270.0070.12314.62
5.3.260.0170.18014.53
5.3.250.0070.13014.62
5.3.240.0030.16314.71
5.3.230.0100.18314.53
5.3.220.0130.18714.53
5.3.210.0070.18714.55
5.3.200.0070.19314.54
5.3.190.0170.19014.53
5.3.180.0030.16014.48
5.3.170.0070.12714.54
5.3.160.0070.18714.49
5.3.150.0030.20314.48
5.3.140.0070.12714.50
5.3.130.0070.17714.37
5.3.120.0130.18014.52
5.3.110.0070.17014.37
5.3.100.0100.13013.86
5.3.90.0030.17714.03
5.3.80.0070.19313.94
5.3.70.0100.18013.98
5.3.60.0070.13313.94
5.3.50.0030.18313.89
5.3.40.0070.14713.96
5.3.30.0070.12313.84
5.3.20.0030.17313.51
5.3.10.0070.16013.57
5.3.00.0070.13313.56
5.2.170.0000.18011.03
5.2.160.0030.15011.30
5.2.150.0030.13711.13
5.2.140.0030.15011.02
5.2.130.0030.20011.05
5.2.120.0070.20010.95
5.2.110.0000.17011.02
5.2.100.0070.19311.03
5.2.90.0130.20711.18
5.2.80.0000.18710.97
5.2.70.0000.15711.18
5.2.60.0070.20311.02
5.2.50.0070.21010.95
5.2.40.0100.13310.91
5.2.30.0000.20010.91
5.2.20.0030.18010.84
5.2.10.0100.18710.74
5.2.00.0030.21310.70
5.1.60.0030.1879.98
5.1.50.0070.15310.06
5.1.40.0000.2039.94
5.1.30.0000.16010.32
5.1.20.0030.15310.34
5.1.10.0030.21710.06
5.1.00.0000.22010.14
5.0.50.0030.3608.57
5.0.40.0000.3478.39
5.0.30.0070.3608.18
5.0.20.0170.3338.11
5.0.10.0000.3208.14
5.0.00.0070.3538.07
4.4.90.0070.3208.04
4.4.80.0030.3278.04
4.4.70.0000.2578.04
4.4.60.0000.3078.04
4.4.50.0030.3208.04
4.4.40.0070.3338.04
4.4.30.0000.2708.04
4.4.20.0000.3278.04
4.4.10.0000.3238.04
4.4.00.0000.2878.04
4.3.110.0100.3008.04
4.3.100.0000.3238.04
4.3.90.0030.2578.04
4.3.80.0000.3308.04
4.3.70.0030.3138.04
4.3.60.0000.2808.04
4.3.50.0000.2838.04
4.3.40.0000.3138.04
4.3.30.0000.3438.04
4.3.20.0000.3208.04
4.3.10.0000.3208.04
4.3.00.0030.3178.04

preferences:
42.29 ms | 401 KiB | 5 Q