3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'bar'; $t = microtime(true); for ($i=0; $i<1000000; $i++) { is_null($foo); } var_dump(microtime(true) - $t); $t = microtime(true); for ($i=0; $i<1000000; $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.2.00.0060.03519.22
7.1.70.0070.03317.12
7.1.60.0030.03617.21
7.1.50.0000.04516.90
7.1.40.0070.08016.45
7.1.30.0070.05616.59
7.1.20.0030.04216.68
7.1.10.0100.02916.54
7.1.00.0030.04716.43
7.0.200.0070.04016.63
7.0.190.0070.03316.71
7.0.180.0090.02816.31
7.0.170.0000.05516.24
7.0.160.0030.03716.48
7.0.150.0070.05616.23
7.0.140.0040.04916.36
7.0.130.0030.06716.35
7.0.120.0070.03316.67
7.0.110.0080.02516.35
7.0.100.0090.02516.32
7.0.90.0030.04216.33
7.0.80.0030.04016.33
7.0.70.0000.03316.38
7.0.60.0000.03916.34
7.0.50.0000.03816.21
7.0.40.0030.04015.43
7.0.30.0070.02915.43
7.0.20.0070.03115.43
7.0.10.0150.03215.43
7.0.00.0070.04015.43
5.6.300.0030.15020.67
5.6.290.0030.16020.95
5.6.280.0100.15520.90
5.6.270.0000.14820.81
5.6.260.0300.15321.03
5.6.250.0030.15020.77
5.6.240.0030.14721.06
5.6.230.0000.17221.05
5.6.220.0030.21120.87
5.6.210.0030.13720.61
5.6.200.0030.13921.04
5.6.190.0070.16121.03
5.6.180.0000.17820.86
5.6.170.0070.17521.02
5.6.160.0100.16220.82
5.6.150.0190.17220.89
5.6.140.0070.17420.97
5.6.130.0100.13120.92
5.6.120.0000.18020.82
5.6.110.0100.13720.97
5.6.100.0070.14920.86
5.6.90.0070.18620.87
5.6.80.0070.15320.37
5.6.70.0270.14820.19
5.6.60.0030.18320.20
5.6.50.0100.16620.41
5.6.40.0030.17420.35
5.6.30.0100.14120.39
5.6.20.0070.17320.19
5.6.10.0000.15820.12
5.6.00.0060.14920.17
5.5.380.0030.13217.56
5.5.370.0030.14017.47
5.5.360.0000.14517.40
5.5.350.0070.15817.48
5.5.340.0100.14318.03
5.5.330.0030.15818.01
5.5.320.0000.14617.98
5.5.310.0070.18917.86
5.5.300.0030.15417.96
5.5.290.0070.15418.08
5.5.280.0130.13918.02
5.5.270.0140.16317.93
5.5.260.0000.16217.83
5.5.250.0100.17717.84
5.5.240.0100.13617.41
5.5.230.0030.15117.08
5.5.220.0030.13717.49
5.5.210.0100.19117.49
5.5.200.0070.14317.38
5.5.190.0070.15817.20
5.5.180.0030.20917.30
5.5.160.0100.18617.06
5.5.150.0070.17217.31
5.5.140.0610.14217.38
5.5.130.0030.14617.34
5.5.120.0000.16217.38
5.5.110.0030.15217.30
5.5.100.0000.13517.20
5.5.90.0070.16217.11
5.5.80.0030.14417.32
5.5.70.0100.13216.98
5.5.60.0030.16617.23
5.5.50.0070.15117.30
5.5.40.0070.19517.26
5.5.30.0130.15317.18
5.5.20.0000.13917.24
5.5.10.0000.15517.19
5.5.00.0100.15617.07
5.4.450.0030.16319.47
5.4.440.0070.17019.34
5.4.430.0070.16519.20
5.4.420.0070.15119.33
5.4.410.0130.15319.19
5.4.400.0070.14818.88
5.4.390.0000.16319.05
5.4.380.0000.15218.88
5.4.370.0070.18019.04
5.4.360.0030.15919.02
5.4.350.0030.17618.88
5.4.340.0070.16618.98
5.4.320.0030.17118.85
5.4.310.0100.14419.06
5.4.300.0130.13819.16
5.4.290.0070.14718.88
5.4.280.0830.15019.09
5.4.270.0100.14019.13
5.4.260.0070.15719.00
5.4.250.0070.12719.16
5.4.240.0000.15019.16
5.4.230.0030.17619.07
5.4.220.0360.17419.09
5.4.210.0030.15519.13
5.4.200.0030.15818.90
5.4.190.0000.18619.13
5.4.180.0030.15919.13
5.4.170.0030.14518.90
5.4.160.0000.16518.83
5.4.150.0070.13819.12
5.4.140.0100.13316.64
5.4.130.0070.14316.47
5.4.120.0030.15216.47
5.4.110.0030.18216.58
5.4.100.0070.14916.64
5.4.90.0070.16116.65
5.4.80.0030.15816.48
5.4.70.0030.16316.33
5.4.60.0030.14716.39
5.4.50.0070.16416.59
5.4.40.0000.18316.61
5.4.30.0100.12816.32
5.4.20.0030.17616.43
5.4.10.0060.15316.32
5.4.00.0030.14615.88
5.3.290.0030.19814.78
5.3.280.0070.19014.81
5.3.270.0030.17814.77
5.3.260.0070.18614.80
5.3.250.0030.20414.77
5.3.240.0070.18314.77
5.3.230.0030.16414.77
5.3.220.0030.20514.77
5.3.210.0000.19514.77
5.3.200.0070.15414.77
5.3.190.0030.19714.77
5.3.180.0030.18614.77
5.3.170.0000.16914.77
5.3.160.0130.16414.77
5.3.150.0100.17714.77
5.3.140.0030.19114.77
5.3.130.0100.15714.77
5.3.120.0100.17114.77
5.3.110.0070.17214.77
5.3.100.0030.19614.77
5.3.90.0070.17614.77
5.3.80.0100.17514.77
5.3.70.0030.16514.77
5.3.60.0070.20714.77
5.3.50.0030.17114.77
5.3.40.0000.17114.77
5.3.30.0030.17814.77
5.3.20.0000.17214.77
5.3.10.0530.20014.77
5.3.00.0000.16614.77
5.2.170.0030.21514.77
5.2.160.0000.19214.77
5.2.150.0030.19314.77
5.2.140.0000.19114.77
5.2.130.0070.17714.77
5.2.120.0680.18314.77
5.2.110.0060.18014.77
5.2.100.0000.18714.77
5.2.90.0270.18114.77
5.2.80.0030.21714.77
5.2.70.0030.17514.77
5.2.60.0130.20514.77
5.2.50.0030.17514.77
5.2.40.0030.18914.77
5.2.30.0000.18214.77
5.2.20.0000.20014.77
5.2.10.0030.16914.77
5.2.00.0000.20014.77
5.1.60.0000.17714.77
5.1.50.0070.18414.77
5.1.40.0070.20714.77
5.1.30.0030.18414.77
5.1.20.0000.22514.77
5.1.10.0000.22814.77
5.1.00.0000.20614.77
5.0.50.0030.40314.77
5.0.40.0070.34014.77
5.0.30.0000.33414.77
5.0.20.0000.33514.77
5.0.10.0030.37114.77
5.0.00.0000.42014.77
4.4.90.0070.34714.77
4.4.80.0000.32514.77
4.4.70.0030.32014.77
4.4.60.0000.35214.77
4.4.50.0000.33714.77
4.4.40.0070.37314.77
4.4.30.0070.40114.77
4.4.20.0070.33514.77
4.4.10.0070.34214.77
4.4.00.0030.32014.77
4.3.110.0100.33714.77
4.3.100.0030.44514.77
4.3.90.0000.30814.77
4.3.80.0830.35714.77
4.3.70.0000.36214.77
4.3.60.0030.33314.77
4.3.50.0490.32314.77
4.3.40.0030.39414.77
4.3.30.0000.34814.77
4.3.20.0030.34114.77
4.3.10.0000.30814.77
4.3.00.0000.32214.77

preferences:
36.48 ms | 401 KiB | 5 Q