3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function apa() { class bla{ function lala($var) { var_dump($var); } } (new bla())->lala("Jonny"); function test($test) { echo $test; } test('hejsan'); } } $test1 = new test(); $test1->apa(); $test1->apa();

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.0070.03612.02
5.4.340.0090.03412.02
5.4.320.0080.03612.51
5.4.310.0080.03712.50
5.4.300.0050.03812.51
5.4.290.0070.03812.50
5.4.280.0060.03612.40
5.4.270.0090.03512.40
5.4.260.0040.04712.40
5.4.250.0090.03912.40
5.4.240.0070.03612.40
5.4.230.0030.04112.39
5.4.220.0080.03612.39
5.4.210.0090.04712.39
5.4.200.0110.03312.39
5.4.190.0080.04112.39
5.4.180.0040.04112.39
5.4.170.0060.03912.40
5.4.160.0070.03612.40
5.4.150.0060.04312.39
5.4.140.0080.04012.07
5.4.130.0080.03512.07
5.4.120.0060.03612.02
5.4.110.0090.06412.02
5.4.100.0070.04312.02
5.4.90.0060.04212.02
5.4.80.0070.04512.02
5.4.70.0050.03812.01
5.4.60.0110.03212.01
5.4.50.0070.04012.01
5.4.40.0080.03612.00
5.4.30.0040.04112.00
5.4.20.0100.04112.00
5.4.10.0090.03612.00
5.4.00.0070.03611.49
5.3.290.0060.04112.80
5.3.280.0040.03912.71
5.3.270.0090.03912.73
5.3.260.0070.04112.72
5.3.250.0050.05112.72
5.3.240.0090.05012.71
5.3.230.0090.05012.71
5.3.220.0070.04412.68
5.3.210.0120.04012.68
5.3.200.0030.04012.68
5.3.190.0050.04212.67
5.3.180.0100.03712.67
5.3.170.0090.04412.67
5.3.160.0060.04312.67
5.3.150.0090.03612.67
5.3.140.0110.03312.66
5.3.130.0030.04412.66
5.3.120.0080.04212.65
5.3.110.0090.04312.65
5.3.100.0120.04812.12
5.3.90.0100.04212.10
5.3.80.0060.03912.09
5.3.70.0100.06812.09
5.3.60.0070.05312.07
5.3.50.0130.04812.02
5.3.40.0120.04812.02
5.3.30.0130.04711.98
5.3.20.0140.04211.75
5.3.10.0090.03611.73
5.3.00.0070.03611.72
5.2.170.0040.0319.21
5.2.160.0060.0329.21
5.2.150.0070.0289.21
5.2.140.0030.0329.21
5.2.130.0020.0329.18
5.2.120.0050.0309.17
5.2.110.0030.0329.18
5.2.100.0070.0269.17
5.2.90.0070.0359.18
5.2.80.0080.0419.17
5.2.70.0030.0349.17
5.2.60.0100.0369.13
5.2.50.0080.0389.09
5.2.40.0070.0379.07
5.2.30.0090.0389.04
5.2.20.0150.0299.04
5.2.10.0090.0358.94
5.2.00.0090.0578.80
5.1.60.0120.0438.09
5.1.50.0180.0568.09
5.1.40.0110.0658.07
5.1.30.0070.0288.42
5.1.20.0050.0288.44
5.1.10.0030.0298.16
5.1.00.0050.0358.16
5.0.50.0030.0216.64
5.0.40.0030.0266.49
5.0.30.0050.0296.31
5.0.20.0040.0186.27
5.0.10.0070.0186.25
5.0.00.0050.0316.24
4.4.90.0070.0304.78
4.4.80.0020.0164.75
4.4.70.0040.0144.75
4.4.60.0030.0154.75
4.4.50.0040.0144.77
4.4.40.0050.0254.71
4.4.30.0030.0164.76
4.4.20.0030.0194.84
4.4.10.0050.0174.85
4.4.00.0030.0334.76
4.3.110.0050.0284.67
4.3.100.0040.0154.67
4.3.90.0010.0194.64
4.3.80.0030.0294.59
4.3.70.0050.0134.63
4.3.60.0040.0134.63
4.3.50.0030.0164.63
4.3.40.0030.0244.54
4.3.30.0040.0143.30
4.3.20.0040.0143.28
4.3.10.0020.0163.24
4.3.00.0130.0237.28

preferences:
130.43 ms | 1398 KiB | 7 Q