3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; define ('null', 1); $start = microtime(true); for ($i=0;$i<10000;$i++) { $a = \is_null($i); } var_dump(microtime(true) - $start); $start = microtime(true); for ($i=0;$i<10000;$i++) { $a = null === $i; } var_dump(microtime(true) - $start);

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)
8.0.110.0050.00216.86
8.0.100.0030.00516.83
8.0.90.0000.00816.95
8.0.80.0070.01016.91
8.0.70.0040.00416.77
8.0.60.0070.00016.66
8.0.50.0000.00816.70
8.0.30.0100.01017.15
8.0.20.0130.01017.40
8.0.10.0050.00216.88
8.0.00.0100.00816.71
7.4.240.0070.00016.56
7.4.230.0000.00716.70
7.4.220.0150.00416.57
7.4.210.0070.00816.57
7.4.200.0050.00316.30
7.4.160.0060.01016.61
7.4.150.0150.00717.40
7.4.140.0100.01017.86
7.4.130.0100.00816.56
7.4.120.0100.00716.46
7.4.110.0000.01716.34
7.4.100.0070.01016.48
7.4.90.0100.01316.34
7.4.80.0030.01319.39
7.4.70.0160.00616.52
7.4.60.0170.00016.46
7.4.50.0070.01016.30
7.4.40.0060.01216.55
7.4.30.0160.00416.57
7.4.00.0020.01614.79
7.3.300.0030.00516.41
7.3.290.0040.00416.44
7.3.280.0110.00816.38
7.3.270.0140.00317.40
7.3.260.0150.00916.34
7.3.250.0070.01016.31
7.3.240.0120.00616.53
7.3.230.0060.01216.55
7.3.210.0110.00616.47
7.3.200.0120.00619.39
7.3.190.0070.01516.37
7.3.180.0130.00616.59
7.3.170.0060.01216.48
7.3.160.0140.00316.36
7.3.120.0040.01514.89
7.3.110.0070.01014.97
7.3.100.0100.00314.74
7.3.90.0090.00614.58
7.3.80.0100.00314.78
7.3.70.0090.00614.75
7.3.60.0110.00414.78
7.3.50.0000.01414.87
7.3.40.0100.00314.84
7.3.30.0000.01114.91
7.3.20.0050.00516.54
7.3.10.0000.01016.66
7.3.00.0080.00616.69
7.2.330.0150.01116.36
7.2.320.0090.01016.50
7.2.310.0100.00716.74
7.2.300.0030.01416.61
7.2.290.0090.01316.75
7.2.250.0090.00914.77
7.2.240.0070.00714.86
7.2.230.0000.01015.13
7.2.220.0040.01514.72
7.2.210.0080.00614.82
7.2.200.0030.01214.88
7.2.190.0000.01414.87
7.2.180.0030.00915.06
7.2.170.0110.00414.89
7.2.60.0060.00816.61
7.2.00.0070.00719.30
7.1.330.0040.01115.59
7.1.320.0060.01015.41
7.1.310.0000.01515.57
7.1.300.0090.00315.76
7.1.290.0090.00315.69
7.1.280.0120.00315.46
7.1.270.0030.01015.70
7.1.260.0000.01315.51
7.1.200.0100.00315.49
7.1.100.0080.00318.11
7.1.70.0030.00517.09
7.1.60.0120.01219.40
7.1.50.0030.01917.01
7.1.00.0070.07322.36
7.0.200.0610.00414.76
7.0.60.0070.04721.71
7.0.50.0070.07717.82
7.0.40.0000.05020.13
7.0.30.0230.07020.04
7.0.20.0130.05020.09
7.0.10.0170.08020.17
7.0.00.0070.08320.07
5.6.280.0000.05720.92
5.6.210.0100.05320.47
5.6.200.0030.04318.21
5.6.190.0070.06020.56
5.6.180.0370.06020.43
5.6.170.0270.05320.50
5.6.160.0130.08020.49
5.6.150.0030.07018.08
5.6.140.0070.08318.20
5.6.130.0070.06318.14
5.6.120.0030.04020.98
5.6.110.0170.06020.99
5.6.100.0130.07720.88
5.6.90.0170.07320.96
5.6.80.0100.08320.53
5.5.350.0130.05320.45
5.5.340.0100.07718.01
5.5.330.0070.04320.37
5.5.320.0500.06020.32
5.5.310.0300.04320.27
5.5.300.0030.05718.02
5.5.290.0070.08718.01
5.5.280.0030.04320.62
5.5.270.0030.05320.64
5.5.260.0100.08720.86
5.5.250.0070.08720.57
5.5.240.0130.07020.34

preferences:
29.56 ms | 401 KiB | 5 Q