3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; define ('Foo\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.0000.00816.81
8.0.100.0000.00716.70
8.0.90.0040.00416.75
8.0.80.0100.01316.74
8.0.70.0030.00516.86
8.0.60.0080.00016.88
8.0.50.0040.00416.90
8.0.30.0080.01016.90
8.0.20.0070.01117.40
8.0.10.0050.00217.05
8.0.00.0040.01416.65
7.4.240.0050.00316.53
7.4.230.0070.00016.61
7.4.220.0060.01316.68
7.4.210.0030.01116.60
7.4.200.0000.00816.58
7.4.160.0100.00716.73
7.4.150.0150.00317.40
7.4.140.0100.01117.86
7.4.130.0050.01316.50
7.4.120.0150.00316.36
7.4.110.0140.00716.47
7.4.100.0100.01016.43
7.4.90.0150.00316.51
7.4.80.0030.01319.39
7.4.70.0070.01016.38
7.4.60.0070.01016.45
7.4.50.0030.01316.19
7.4.40.0100.00616.52
7.4.30.0090.00916.46
7.4.10.0070.01114.89
7.4.00.0090.00614.93
7.3.300.0030.00316.37
7.3.290.0000.00716.38
7.3.280.0080.01116.38
7.3.270.0100.00717.40
7.3.260.0150.00916.61
7.3.250.0100.00916.49
7.3.240.0130.00516.38
7.3.230.0170.00716.39
7.3.210.0080.00816.24
7.3.200.0090.00919.39
7.3.190.0180.00616.45
7.3.180.0150.00616.55
7.3.170.0160.00616.32
7.3.160.0030.01416.29
7.3.130.0030.01114.77
7.3.120.0060.01214.88
7.3.110.0000.01515.00
7.3.100.0000.01315.01
7.3.90.0060.00814.63
7.3.80.0090.00614.63
7.3.70.0040.01114.85
7.3.60.0100.00314.92
7.3.50.0130.00314.67
7.3.40.0000.01714.80
7.3.30.0000.01414.81
7.3.20.0040.00816.78
7.3.10.0100.00416.64
7.3.00.0020.01316.76
7.2.330.0000.02116.54
7.2.320.0060.01216.45
7.2.310.0070.01016.48
7.2.300.0170.00016.67
7.2.290.0120.00916.60
7.2.260.0100.00714.70
7.2.250.0070.01115.18
7.2.240.0080.00814.62
7.2.230.0100.00715.09
7.2.220.0000.01614.86
7.2.210.0030.01414.68
7.2.200.0040.01114.88
7.2.190.0030.01314.75
7.2.180.0030.01415.00
7.2.170.0000.01714.99
7.2.160.0000.01814.91
7.2.150.0030.01316.93
7.2.140.0070.01016.95
7.2.130.0050.01016.87
7.2.120.0090.00716.85
7.2.110.0030.01416.97
7.2.100.0040.01217.02
7.2.90.0040.00916.84
7.2.80.0060.00916.81
7.2.70.0100.00716.97
7.2.60.0060.01016.78
7.2.50.0100.00416.88
7.2.40.0090.00816.77
7.2.30.0060.01216.82
7.2.20.0060.01116.96
7.2.10.0080.00716.83
7.2.00.0060.00917.66
7.1.330.0120.00315.89
7.1.320.0020.01115.88
7.1.310.0060.00915.84
7.1.300.0030.01315.75
7.1.290.0100.00715.63
7.1.280.0060.01015.77
7.1.270.0060.00915.73
7.1.260.0070.01015.42
7.1.250.0040.00915.67
7.1.240.0090.00615.42
7.1.230.0030.01215.75
7.1.220.0070.00715.90
7.1.210.0030.01015.82
7.1.200.0040.01215.60
7.1.190.0030.01315.57
7.1.180.0040.01515.80
7.1.170.0070.01015.77
7.1.160.0070.01015.63
7.1.150.0090.00615.76
7.1.140.0060.00915.78
7.1.130.0150.00015.72
7.1.120.0080.00815.61
7.1.110.0100.00315.55
7.1.100.0040.01016.68
7.1.90.0060.01015.66
7.1.80.0110.00415.52
7.1.70.0080.00916.39
7.1.60.0080.00917.49
7.1.50.0110.00716.32
7.1.40.0100.00715.71
7.1.30.0060.00915.76
7.1.20.0060.00915.88
7.1.10.0000.01415.48
7.1.00.0070.03918.97
7.0.330.0090.00615.30
7.0.320.0090.00315.60
7.0.310.0000.01515.26
7.0.300.0030.01315.40
7.0.290.0030.01315.48
7.0.280.0100.00315.25
7.0.270.0130.00315.23
7.0.260.0090.00615.55
7.0.250.0070.00715.61
7.0.240.0100.00615.50
7.0.230.0070.01115.54
7.0.220.0090.00615.53
7.0.210.0070.01115.61
7.0.200.0380.00514.96
7.0.190.0070.01015.25
7.0.180.0060.00915.47
7.0.170.0170.00015.30
7.0.160.0070.00615.17
7.0.150.0000.00915.46
7.0.140.0090.00615.43
7.0.130.0110.00715.21
7.0.120.0090.00615.36
7.0.110.0080.00515.48
7.0.100.0040.01415.47
7.0.90.0030.01415.39
7.0.80.0100.00315.40
7.0.70.0090.00615.48
7.0.60.0120.01918.50
7.0.50.0050.03416.58
7.0.40.0030.02916.79
7.0.30.0180.04516.87
7.0.20.0120.04716.64
7.0.10.0070.03916.75
7.0.00.0070.04316.77
5.6.400.0100.01013.96
5.6.390.0060.01314.02
5.6.380.0030.01314.34
5.6.370.0030.01714.61
5.6.360.0060.00914.25
5.6.350.0000.02014.29
5.6.340.0100.00614.50
5.6.330.0070.01114.09
5.6.320.0040.00814.14
5.6.310.0030.01314.01
5.6.300.0000.01814.09
5.6.290.0030.01314.23
5.6.280.0020.02617.74
5.6.270.0060.01314.38
5.6.260.0120.00614.64
5.6.250.0040.01114.09
5.6.240.0030.01514.19
5.6.230.0030.01714.39
5.6.220.0060.01214.36
5.6.210.0100.04517.31
5.6.200.0070.02716.22
5.6.190.0060.02817.54
5.6.180.0170.03017.18
5.6.170.0200.04417.36
5.6.160.0110.04317.48
5.6.150.0020.02916.29
5.6.140.0070.04316.27
5.6.130.0050.03416.32
5.6.120.0060.02317.83
5.6.110.0050.04817.59
5.6.100.0130.03217.61
5.6.90.0120.04217.83
5.6.80.0110.04117.22
5.6.70.0000.01614.32
5.6.60.0070.01314.17
5.6.50.0030.01214.35
5.6.40.0030.01313.90
5.6.30.0090.01214.21
5.6.20.0120.00614.47
5.6.10.0120.00613.98
5.6.00.0060.00614.11
5.5.380.0040.01414.20
5.5.370.0070.01314.22
5.5.360.0000.01914.41
5.5.350.0100.02517.20
5.5.340.0080.02616.23
5.5.330.0040.03317.36
5.5.320.0250.03517.10
5.5.310.0130.03017.30
5.5.300.0130.04016.18
5.5.290.0120.03216.09
5.5.280.0050.05117.35
5.5.270.0070.05017.54
5.5.260.0070.04317.45
5.5.250.0070.04817.48
5.5.240.0130.02517.17
5.5.230.0060.01014.19
5.5.220.0070.01013.88
5.5.210.0070.01013.97
5.5.200.0000.01514.01
5.5.190.0070.01014.09
5.5.180.0030.01614.09
5.5.170.0030.01714.11
5.5.160.0070.01314.14
5.5.150.0110.00614.40
5.5.140.0040.01514.02
5.5.130.0000.01414.41
5.5.120.0030.01614.33
5.5.110.0160.00313.99
5.5.100.0030.01314.39
5.5.90.0000.01313.98
5.5.80.0040.01514.20
5.5.70.0040.01414.18
5.5.60.0070.01114.27
5.5.50.0040.01514.32
5.5.40.0070.01114.09
5.5.30.0030.01614.25
5.5.20.0100.00314.35
5.5.10.0060.00614.34
5.5.00.0030.01214.26

preferences:
42.04 ms | 401 KiB | 5 Q