3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$a = 1; $time=microtime(true);for($x=0;$x<100000;$x++){ $b = is_null($a);} round(microtime(true)-$time, 5)."\n"; $a = 1; $time=microtime(true);for($x=0;$x<100000;$x++){ $b = ($a === null);} round(microtime(true)-$time, 5)."\n";;

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.10.0120.00915.10
7.4.00.0070.01415.17
7.3.130.0040.01814.91
7.3.120.0070.01315.02
7.3.110.0100.01314.76
7.3.100.0120.00614.85
7.3.90.0120.00614.93
7.3.80.0060.01314.79
7.3.70.0070.01014.72
7.3.60.0060.01314.78
7.3.50.0120.00914.93
7.3.40.0060.00614.96
7.3.30.0090.00914.79
7.3.20.0030.01916.61
7.3.10.0100.01016.83
7.3.00.0080.00816.61
7.2.260.0100.01014.98
7.2.250.0110.00714.74
7.2.240.0060.01014.81
7.2.230.0120.00915.23
7.2.220.0080.01114.89
7.2.210.0080.00615.31
7.2.200.0040.00814.76
7.2.190.0060.01215.01
7.2.180.0070.01415.11
7.2.170.0000.01615.04
7.2.160.0100.00915.02
7.2.150.0040.01516.73
7.2.140.0100.00316.97
7.2.130.0030.01316.70
7.2.120.0040.01516.97
7.2.110.0100.00316.76
7.2.100.0060.00816.93
7.2.90.0030.01416.98
7.2.80.0110.00016.96
7.2.70.0070.01017.09
7.2.60.0070.00416.97
7.2.50.0070.00716.96
7.2.40.0030.01016.79
7.2.30.0030.01016.98
7.2.20.0000.01116.89
7.2.10.0060.00916.98
7.2.00.0100.00716.96
7.1.330.0110.00715.62
7.1.320.0030.01915.71
7.1.310.0060.01215.89
7.1.300.0100.01015.77
7.1.290.0040.01415.83
7.1.280.0090.00915.53
7.1.270.0090.00915.74
7.1.260.0040.01615.74
7.1.250.0090.00915.76
7.1.240.0110.01115.95
7.1.230.0070.01115.86
7.1.220.0030.01615.54
7.1.210.0060.00915.98
7.1.200.0040.01515.55
7.1.190.0030.01515.63
7.1.180.0070.01015.93
7.1.170.0000.02115.67
7.1.160.0060.00915.86
7.1.150.0030.01715.68
7.1.140.0000.01415.85
7.1.130.0030.01615.95
7.1.120.0040.01415.78
7.1.110.0090.01215.71
7.1.100.0100.01415.79
7.1.90.0090.00916.04
7.1.80.0060.00915.71
7.1.70.0040.00916.42
7.1.60.0110.01517.49
7.1.50.0120.02025.33
7.1.40.0040.01515.66
7.1.30.0080.02015.75
7.1.20.0130.00415.62
7.1.10.0090.01615.83
7.1.00.0060.02119.17
7.0.330.0070.01015.50
7.0.320.0040.01415.47
7.0.310.0040.01115.22
7.0.300.0000.01615.30
7.0.290.0060.01315.54
7.0.280.0110.01115.20
7.0.270.0030.01315.21
7.0.260.0080.01115.41
7.0.250.0000.01915.24
7.0.240.0030.02115.50
7.0.230.0060.00915.58
7.0.220.0030.01715.43
7.0.210.0030.01415.25
7.0.200.0050.00815.98
7.0.190.0100.01315.59
7.0.180.0060.00915.52
7.0.170.0090.00915.60
7.0.160.0030.01115.39
7.0.150.0100.01015.14
7.0.140.0020.04718.61
7.0.130.0040.01515.29
7.0.120.0040.01915.27
7.0.110.0070.01415.56
7.0.100.0100.01015.19
7.0.90.0030.01515.63
7.0.80.0090.01215.53
7.0.70.0070.01315.33
7.0.60.0030.05417.69
7.0.50.0070.04316.68
7.0.40.0060.04816.66
7.0.30.0100.03416.69
7.0.20.0100.02916.86
7.0.10.0170.03216.82
7.0.00.0040.02916.73
5.6.400.0030.02014.38
5.6.390.0030.01914.00
5.6.380.0000.02214.31
5.6.370.0000.02514.30
5.6.360.0030.01914.44
5.6.350.0060.01914.35
5.6.340.0070.01814.20
5.6.330.0060.01614.32
5.6.320.0000.02514.26
5.6.310.0030.02014.65
5.6.300.0150.01214.51
5.6.290.0030.01614.32
5.6.280.0050.05117.68
5.6.270.0100.01314.10
5.6.260.0030.02114.08
5.6.250.0090.01514.03
5.6.240.0070.01714.28
5.6.230.0070.01914.34
5.6.220.0090.01614.36
5.6.210.0100.04817.51
5.6.200.0000.03616.26
5.6.190.0080.04417.37
5.6.180.0180.03917.47
5.6.170.0230.04617.55
5.6.160.0050.05617.50
5.6.150.0030.03316.29
5.6.140.0020.03316.18
5.6.130.0050.05216.13
5.6.120.0130.02617.60
5.6.110.0050.02917.61
5.6.100.0080.05217.56
5.6.90.0080.05717.69
5.6.80.0050.05217.52
5.6.70.0000.02114.04
5.6.60.0090.01614.25
5.6.50.0060.01314.13
5.6.40.0000.01914.25
5.6.30.0030.02314.21
5.6.20.0030.02414.36
5.6.10.0030.02014.46
5.6.00.0120.01514.17
5.5.380.0070.01614.45
5.5.370.0130.01313.89
5.5.360.0030.02014.55
5.5.350.0200.05017.35
5.5.340.0060.03116.05
5.5.330.0030.03617.38
5.5.320.0130.03017.06
5.5.310.0180.05017.23
5.5.300.0050.03015.94
5.5.290.0050.04416.12
5.5.280.0110.04817.48
5.5.270.0020.04117.38
5.5.260.0080.04017.47
5.5.250.0080.03417.31
5.5.240.0080.02817.33
5.5.230.0070.01814.41
5.5.220.0100.01614.23
5.5.210.0030.02313.96
5.5.200.0090.01814.08
5.5.190.0130.01014.35
5.5.180.0070.01814.41
5.5.170.0000.02313.98
5.5.160.0100.01914.45
5.5.150.0000.02214.08
5.5.140.0070.02014.30
5.5.130.0070.01814.13
5.5.120.0060.01614.27
5.5.110.0150.00914.34
5.5.100.0040.02114.25
5.5.90.0060.02314.17
5.5.80.0000.02514.33
5.5.70.0030.02113.86
5.5.60.0040.02114.26
5.5.50.0030.02414.15
5.5.40.0030.02714.18
5.5.30.0100.02014.33
5.5.20.0060.02114.34
5.5.10.0030.01514.22
5.5.00.0100.01614.08
5.4.450.1670.02715.58
5.4.440.0020.03115.67
5.4.430.2030.02815.58
5.4.420.1920.03315.74
5.4.410.2040.03115.61
5.4.400.2400.02715.47
5.4.390.2070.03015.64
5.4.380.2070.02815.64
5.4.370.2130.02915.44
5.4.360.1970.03415.53
5.4.350.1920.02515.55
5.4.340.2160.02915.61
5.4.330.0100.01711.98
5.4.320.2320.02615.57
5.4.310.2080.02515.49
5.4.300.2180.03415.44
5.4.290.1900.02715.61
5.4.280.1880.03115.42
5.4.270.1850.03515.60
5.4.260.1880.03015.48
5.4.250.2000.03015.52
5.4.240.2020.03215.58
5.4.230.1800.03415.46
5.4.220.2150.02915.55
5.4.210.2210.02715.43
5.4.200.2020.02915.56
5.4.190.2380.02715.58
5.4.180.2220.03215.42
5.4.170.2150.03215.54
5.4.160.2180.02815.43
5.4.150.2270.03115.54
5.4.140.2280.02914.10
5.4.130.2270.02814.10
5.4.120.2230.03014.21
5.4.110.2430.02814.21
5.4.100.2050.03014.22
5.4.90.2280.03114.05
5.4.80.2020.02814.27
5.4.70.1830.03414.23
5.4.60.2080.02814.22
5.4.50.1850.02814.04
5.4.40.2280.03214.26
5.4.30.2430.03414.17
5.4.20.1850.02914.15
5.4.10.1900.03014.17
5.4.00.1850.02813.89
5.3.290.2380.02913.30
5.3.280.2080.02713.25
5.3.270.2200.03113.26
5.3.260.1930.03013.26
5.3.250.2010.03113.28
5.3.240.2150.02913.26
5.3.230.2120.02813.21
5.3.220.2030.03013.18
5.3.210.2120.03413.23
5.3.200.2720.02513.24
5.3.190.2150.03413.31
5.3.180.1930.03213.23
5.3.170.2080.02913.28
5.3.160.1970.02213.24
5.3.150.2120.02813.24
5.3.140.2250.03013.23
5.3.130.2030.03213.23
5.3.120.1700.03213.23
5.3.110.1850.03413.22
5.3.100.1880.02912.97
5.3.90.1520.03213.00
5.3.80.1460.02912.96
5.3.70.2100.02612.93
5.3.60.1920.02913.04
5.3.50.1720.03112.93
5.3.40.0030.02812.93
5.3.30.0380.03612.99
5.3.20.1900.02812.80
5.3.10.1830.03212.78
5.3.00.1900.03412.72
5.2.170.2470.03711.27
5.2.160.0070.03311.20
5.2.150.0000.03711.25
5.2.140.2770.03311.42
5.2.130.3000.03011.25
5.2.120.3170.02711.21
5.2.110.3070.03311.16
5.2.100.3370.03011.16
5.2.90.3300.04011.25
5.2.80.3630.03311.16
5.2.70.3970.03711.24
5.2.60.3930.03311.09
5.2.50.3930.03711.05
5.2.40.3230.03311.12
5.2.30.3300.03710.91
5.2.20.2530.04011.09
5.2.10.2930.03710.96
5.2.00.2670.03710.96
5.1.60.2700.03010.25
5.1.50.0070.03710.10
5.1.40.0030.04310.19
5.1.30.0070.06710.61
5.1.20.0070.07010.46
5.1.10.3300.03010.18
5.1.00.2930.03010.32
5.0.50.1830.0338.68
5.0.40.1400.0408.64
5.0.30.1430.0478.31
5.0.20.1530.0378.34
5.0.10.1370.0338.41
5.0.00.1200.0478.27
4.4.90.1570.0336.02
4.4.80.1730.0335.93
4.4.70.1400.0335.95
4.4.60.1530.0305.91
4.4.50.1630.0306.08
4.4.40.0070.0736.06
4.4.30.0070.0406.07
4.4.20.1070.0406.06
4.4.10.1830.0306.01
4.4.00.1770.0405.97
4.3.110.1430.0376.03
4.3.100.1370.0335.87
4.3.90.1470.0305.97
4.3.80.1530.0405.83
4.3.70.1300.0305.92
4.3.60.1630.0435.88
4.3.50.1630.0405.84
4.3.40.1800.0375.84
4.3.30.0830.0335.43
4.3.20.0970.0405.43
4.3.10.0770.0305.43
4.3.00.0930.0235.43

preferences:
38.16 ms | 400 KiB | 5 Q