3v4l.org

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

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.0100.03612.02
5.4.340.0060.03912.02
5.4.320.0050.04812.51
5.4.310.0110.05412.50
5.4.300.0130.03412.51
5.4.290.0040.04412.50
5.4.280.0060.04412.40
5.4.270.0100.03512.40
5.4.260.0100.03812.40
5.4.250.0060.04212.40
5.4.240.0070.03712.40
5.4.230.0060.04312.39
5.4.220.0060.04012.39
5.4.210.0040.04212.39
5.4.200.0120.05612.39
5.4.190.0070.03712.39
5.4.180.0050.03712.39
5.4.170.0080.03612.40
5.4.160.0050.03712.40
5.4.150.0080.03512.39
5.4.140.0100.04612.07
5.4.130.0060.03712.07
5.4.120.0120.04112.02
5.4.110.0130.06012.02
5.4.100.0090.03612.02
5.4.90.0070.03912.02
5.4.80.0090.04212.02
5.4.70.0080.04712.02
5.4.60.0060.04612.02
5.4.50.0060.03812.02
5.4.40.0090.03312.01
5.4.30.0040.04512.00
5.4.20.0090.04012.00
5.4.10.0070.04012.00
5.4.00.0100.03411.49
5.3.290.0100.04412.80
5.3.280.0080.03812.70
5.3.270.0050.04112.72
5.3.260.0090.03712.72
5.3.250.0080.03912.72
5.3.240.0080.03712.72
5.3.230.0100.03412.71
5.3.220.0040.04112.68
5.3.210.0100.03712.68
5.3.200.0080.03812.68
5.3.190.0080.04812.68
5.3.180.0110.05312.68
5.3.170.0100.04812.67
5.3.160.0040.04012.68
5.3.150.0090.04412.68
5.3.140.0110.04612.66
5.3.130.0080.06112.66
5.3.120.0100.06712.65
5.3.110.0090.04512.66
5.3.100.0070.03712.12
5.3.90.0060.04412.10
5.3.80.0070.03512.09
5.3.70.0070.04012.09
5.3.60.0080.03812.07
5.3.50.0040.04012.02
5.3.40.0060.04512.02
5.3.30.0060.04311.98
5.3.20.0060.04311.75
5.3.10.0090.03411.73
5.3.00.0080.03411.72
5.2.170.0070.0429.21
5.2.160.0040.0309.21
5.2.150.0020.0369.22
5.2.140.0100.0269.21
5.2.130.0030.0349.17
5.2.120.0050.0369.17
5.2.110.0090.0329.18
5.2.100.0050.0349.17
5.2.90.0100.0479.18
5.2.80.0080.0399.17
5.2.70.0090.0389.17
5.2.60.0060.0409.13
5.2.50.0060.0359.10
5.2.40.0060.0299.07
5.2.30.0050.0379.04
5.2.20.0070.0399.04
5.2.10.0060.0398.94
5.2.00.0070.0358.81
5.1.60.0130.0428.09
5.1.50.0080.0328.09
5.1.40.0090.0288.07
5.1.30.0060.0308.41
5.1.20.0060.0328.44
5.1.10.0060.0318.17
5.1.00.0060.0298.16
5.0.50.0080.0266.64
5.0.40.0050.0236.50
5.0.30.0060.0346.31
5.0.20.0060.0246.28
5.0.10.0100.0606.25
5.0.00.0030.0336.24
4.4.90.0040.0164.78
4.4.80.0030.0174.75
4.4.70.0040.0164.75
4.4.60.0020.0194.76
4.4.50.0060.0144.77
4.4.40.0030.0344.71
4.4.30.0060.0294.76
4.4.20.0030.0174.85
4.4.10.0030.0184.85
4.4.00.0070.0224.76
4.3.110.0050.0204.67
4.3.100.0030.0164.67
4.3.90.0050.0144.63
4.3.80.0020.0304.58
4.3.70.0030.0174.63
4.3.60.0060.0154.63
4.3.50.0080.0174.62
4.3.40.0050.0254.54
4.3.30.0050.0153.30
4.3.20.0060.0193.28
4.3.10.0030.0163.23
4.3.00.0100.0237.28

preferences:
135.98 ms | 1394 KiB | 7 Q