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->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.0060.04012.03
5.4.340.0080.03712.02
5.4.320.0110.04012.51
5.4.310.0080.04412.50
5.4.300.0090.04212.51
5.4.290.0130.06312.50
5.4.280.0070.03712.40
5.4.270.0070.03812.40
5.4.260.0050.04212.40
5.4.250.0050.04012.40
5.4.240.0100.03412.40
5.4.230.0110.03612.39
5.4.220.0100.03912.39
5.4.210.0100.03712.39
5.4.200.0090.04212.40
5.4.190.0080.03812.39
5.4.180.0080.03812.39
5.4.170.0040.04512.40
5.4.160.0090.03712.40
5.4.150.0050.04012.39
5.4.140.0060.03912.07
5.4.130.0060.03612.07
5.4.120.0070.05212.02
5.4.110.0070.04612.02
5.4.100.0080.05112.02
5.4.90.0080.04512.02
5.4.80.0080.04012.02
5.4.70.0050.03612.01
5.4.60.0050.03712.01
5.4.50.0080.03712.02
5.4.40.0080.03612.00
5.4.30.0110.04612.00
5.4.20.0050.03812.00
5.4.10.0050.03512.00
5.4.00.0110.04411.49
5.3.290.0070.05312.80
5.3.280.0070.04312.71
5.3.270.0060.04212.72
5.3.260.0080.04212.72
5.3.250.0090.03912.72
5.3.240.0080.03912.72
5.3.230.0060.04212.71
5.3.220.0100.03712.68
5.3.210.0080.05912.68
5.3.200.0110.04912.68
5.3.190.0170.04812.68
5.3.180.0060.05012.67
5.3.170.0070.03712.67
5.3.160.0060.04012.67
5.3.150.0030.04212.68
5.3.140.0090.04012.66
5.3.130.0080.03712.66
5.3.120.0060.04012.66
5.3.110.0060.03912.66
5.3.100.0050.03812.12
5.3.90.0060.03812.10
5.3.80.0050.04212.09
5.3.70.0070.04012.09
5.3.60.0030.04312.07
5.3.50.0080.03512.02
5.3.40.0030.04012.02
5.3.30.0060.03611.98
5.3.20.0070.03811.76
5.3.10.0120.04011.73
5.3.00.0080.03811.71
5.2.170.0050.0319.21
5.2.160.0050.0409.21
5.2.150.0130.0439.22
5.2.140.0110.0369.21
5.2.130.0060.0329.18
5.2.120.0130.0359.18
5.2.110.0080.0329.18
5.2.100.0040.0309.18
5.2.90.0040.0319.17
5.2.80.0100.0269.17
5.2.70.0050.0329.17
5.2.60.0070.0429.13
5.2.50.0050.0329.10
5.2.40.0050.0329.07
5.2.30.0040.0319.05
5.2.20.0040.0309.04
5.2.10.0050.0338.94
5.2.00.0050.0438.80
5.1.60.0090.0318.09
5.1.50.0050.0358.08
5.1.40.0070.0358.07
5.1.30.0050.0378.41
5.1.20.0040.0308.44
5.1.10.0080.0258.16
5.1.00.0060.0278.16
5.0.50.0030.0226.64
5.0.40.0030.0216.49
5.0.30.0050.0316.31
5.0.20.0050.0196.27
5.0.10.0040.0266.25
5.0.00.0020.0426.25
4.4.90.0040.0214.78
4.4.80.0040.0164.75
4.4.70.0020.0174.76
4.4.60.0030.0164.75
4.4.50.0020.0164.77
4.4.40.0030.0324.70
4.4.30.0060.0144.76
4.4.20.0030.0184.84
4.4.10.0060.0144.85
4.4.00.0020.0264.76
4.3.110.0030.0164.67
4.3.100.0010.0214.66
4.3.90.0020.0174.64
4.3.80.0020.0254.58
4.3.70.0060.0124.63
4.3.60.0030.0164.63
4.3.50.0050.0284.63
4.3.40.0080.0444.54
4.3.30.0060.0303.30
4.3.20.0060.0173.28
4.3.10.0030.0153.24
4.3.00.0000.0277.28

preferences:
139.86 ms | 1386 KiB | 7 Q