3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bench($name, $fn) { $start = microtime(true); for($i = 0; $i < 200000; $i++) $fn(); $end = microtime(true); echo($name . "time: " . ($end - $start) . "\n"); } bench(function() { "== ", 1 == 0; }); bench(function() { "===", 1 === 0; }); ?>

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)
5.4.350.0050.03512.03
5.4.340.0070.03512.03
5.4.320.0090.03912.52
5.4.310.0060.04312.51
5.4.300.0090.04012.52
5.4.290.0070.04112.52
5.4.280.0050.04212.41
5.4.270.0090.04312.41
5.4.260.0060.03812.41
5.4.250.0070.03612.41
5.4.240.0100.03612.41
5.4.230.0100.03812.40
5.4.220.0020.04512.41
5.4.210.0060.04012.40
5.4.200.0100.04412.41
5.4.190.0060.04312.40
5.4.180.0080.04912.40
5.4.170.0070.05112.41
5.4.160.0070.04712.40
5.4.150.0090.04812.39
5.4.140.0080.04512.09
5.4.130.0120.04212.07
5.4.120.0060.04312.03
5.4.110.0030.05112.04
5.4.100.0090.03612.03
5.4.90.0080.04312.03
5.4.80.0050.03912.03
5.4.70.0100.04012.03
5.4.60.0090.04112.03
5.4.50.0090.04312.03
5.4.40.0080.04312.01
5.4.30.0050.04012.02
5.4.20.0020.04212.00
5.4.10.0080.03912.01
5.4.00.0080.04211.50
5.3.290.0080.04812.80
5.3.280.0080.04112.71
5.3.270.0120.03512.72
5.3.260.0050.05012.72
5.3.250.0060.04312.72
5.3.240.0070.03712.71
5.3.230.0060.03812.71
5.3.220.0040.04012.68
5.3.210.0060.04112.68
5.3.200.0100.03612.68
5.3.190.0080.03912.68
5.3.180.0090.04012.68
5.3.170.0080.03712.67
5.3.160.0080.03512.67
5.3.150.0060.03712.67
5.3.140.0040.03812.66
5.3.130.0060.03912.66
5.3.120.0100.03812.66
5.3.110.0080.04112.65
5.3.100.0100.03812.14
5.3.90.0080.03612.11
5.3.80.0060.03712.09
5.3.70.0080.03712.10
5.3.60.0070.04112.08
5.3.50.0150.04112.02
5.3.40.0100.05612.02
5.3.30.0110.04211.99
5.3.20.0080.03811.77
5.3.10.0070.04711.74
5.3.00.0090.04211.72
5.2.170.0090.0349.21
5.2.160.0030.0369.21
5.2.150.0070.0409.21
5.2.140.0100.0349.21
5.2.130.0050.0399.17
5.2.120.0050.0449.18
5.2.110.0090.0339.18
5.2.100.0100.0369.18
5.2.90.0040.0449.18
5.2.80.0060.0369.17
5.2.70.0060.0359.18
5.2.60.0030.0349.13
5.2.50.0050.0339.10
5.2.40.0040.0309.07
5.2.30.0050.0329.05
5.2.20.0040.0309.04
5.2.10.0030.0328.94
5.2.00.0040.0318.80
5.1.60.0020.0288.09
5.1.50.0030.0288.08
5.1.40.0040.0278.07
5.1.30.0090.0358.42
5.1.20.0050.0308.44
5.1.10.0050.0288.16
5.1.00.0040.0308.16
5.0.50.0020.0236.65
5.0.40.0060.0206.50
5.0.30.0030.0416.32
5.0.20.0070.0166.28
5.0.10.0050.0216.26
5.0.00.0040.0306.25
4.4.90.0050.0174.78
4.4.80.0040.0224.76
4.4.70.0040.0214.76
4.4.60.0030.0254.75
4.4.50.0040.0164.77
4.4.40.0020.0274.71
4.4.30.0020.0184.76
4.4.20.0020.0224.84
4.4.10.0070.0174.85
4.4.00.0030.0274.76
4.3.110.0040.0174.67
4.3.100.0020.0204.66
4.3.90.0040.0144.64
4.3.80.0030.0304.59
4.3.70.0030.0174.63
4.3.60.0050.0174.63
4.3.50.0050.0174.63
4.3.40.0030.0304.54
4.3.30.0010.0203.30
4.3.20.0010.0183.29
4.3.10.0030.0193.24
4.3.00.0170.0208.45

preferences:
143.54 ms | 1386 KiB | 7 Q