3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php error_reporting(-1); class Foo { function get() { return "bar"; } } echo Foo::get();

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.340.0040.03712.01
5.4.320.0070.03612.50
5.4.310.0040.04112.49
5.4.300.0100.03312.50
5.4.290.0060.04412.49
5.4.280.0040.04912.39
5.4.270.0060.04412.39
5.4.260.0090.03512.39
5.4.250.0080.03712.39
5.4.240.0050.04012.39
5.4.230.0050.04112.38
5.4.220.0050.03812.38
5.4.210.0100.03512.38
5.4.200.0070.04012.38
5.4.190.0080.04012.38
5.4.180.0070.03512.38
5.4.170.0080.03412.39
5.4.160.0120.03412.38
5.4.150.0130.03512.38
5.4.140.0100.05312.07
5.4.130.0080.03612.05
5.4.120.0110.04512.02
5.4.110.0030.04312.01
5.4.100.0090.06812.01
5.4.90.0100.04912.01
5.4.80.0140.06512.01
5.4.70.0110.08912.00
5.4.60.0120.06712.01
5.4.50.0030.04212.00
5.4.40.0060.04611.99
5.4.30.0080.05811.99
5.4.20.0150.04711.98
5.4.10.0160.08211.99
5.4.00.0100.07711.48
5.3.290.0070.08712.80
5.3.280.0150.08612.71
5.3.270.0240.07112.73
5.3.260.0150.04512.72
5.3.250.0100.03912.72
5.3.240.0150.05912.72
5.3.230.0160.07512.71
5.3.220.0180.08312.68
5.3.210.0130.07812.68
5.3.200.0080.04512.68
5.3.190.0190.08112.68
5.3.180.0070.05012.67
5.3.170.0070.05012.67
5.3.160.0120.07512.67
5.3.150.0060.05012.68
5.3.140.0250.08412.66
5.3.130.0100.07512.66
5.3.120.0070.06712.66
5.3.110.0100.04912.66
5.3.100.0120.06612.12
5.3.90.0080.06612.08
5.3.80.0090.05112.07
5.3.70.0080.03712.07
5.3.60.0080.03712.06
5.3.50.0050.04512.00
5.3.40.0130.05112.00
5.3.30.0110.04911.95
5.3.20.0080.05111.73
5.3.10.0040.05711.70
5.3.00.0110.04411.68
5.2.170.0060.0449.18
5.2.160.0080.0739.18
5.2.150.0110.0489.18
5.2.140.0120.0509.18
5.2.130.0080.0499.14
5.2.120.0130.0639.14
5.2.110.0080.0419.14
5.2.100.0060.0389.14
5.2.90.0130.0369.14
5.2.80.0110.0339.13
5.2.70.0080.0539.14
5.2.60.0070.0369.09
5.2.50.0120.0489.05
5.2.40.0050.0369.03
5.2.30.0090.0369.02
5.2.20.0050.0339.01
5.2.10.0040.0338.93
5.2.00.0060.0398.78
5.1.60.0080.0368.06
5.1.50.0130.0318.06
5.1.40.0090.0578.05
5.1.30.0030.0458.40
5.1.20.0040.0348.41
5.1.10.0080.0438.14
5.1.00.0080.0368.14
5.0.50.0100.0546.62
5.0.40.0030.0306.48
5.0.30.0070.0446.29
5.0.20.0070.0276.27
5.0.10.0090.0296.23
5.0.00.0050.0486.23
4.4.90.0020.0234.78
4.4.80.0040.0214.76
4.4.70.0070.0234.75
4.4.60.0070.0184.75
4.4.50.0030.0184.77
4.4.40.0030.0334.71
4.4.30.0050.0144.76
4.4.20.0060.0154.85
4.4.10.0040.0164.85
4.4.00.0010.0284.75
4.3.110.0030.0154.67
4.3.100.0010.0174.66
4.3.90.0020.0154.64
4.3.80.0020.0254.59
4.3.70.0030.0164.63
4.3.60.0040.0134.63
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0020.0163.29
4.3.20.0040.0203.26
4.3.10.0040.0223.22
4.3.00.0100.0236.86

preferences:
142.98 ms | 1394 KiB | 7 Q