3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function geatClosure() { return 'aaa'; // return function() { //echo 'aaa'; //} } } $test = new test; $closure = $test->geatClosure(); echo $closure //$closure();

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.280.0110.05812.40
5.4.270.0140.05512.40
5.4.260.0170.06712.40
5.4.250.0130.04912.40
5.4.240.0180.06212.40
5.4.230.0120.06112.39
5.4.220.0150.09012.39
5.4.210.0080.04812.39
5.4.200.0080.04412.39
5.4.190.0080.04512.39
5.4.180.0070.04812.39
5.4.170.0090.04312.40
5.4.160.0090.04712.39
5.4.150.0090.04912.39
5.4.140.0090.04812.08
5.4.130.0080.04412.06
5.4.120.0090.05112.02
5.4.110.0120.04712.02
5.4.100.0070.04412.02
5.4.90.0100.04712.02
5.4.80.0140.06312.02
5.4.70.0070.03912.02
5.4.60.0100.04212.01
5.4.50.0090.04312.02
5.4.40.0070.04212.00
5.4.30.0090.04312.00
5.4.20.0060.04612.00
5.4.10.0070.04512.00
5.4.00.0100.04511.49
5.3.280.0090.05012.71
5.3.270.0120.05612.72
5.3.260.0110.05512.72
5.3.250.0120.06212.72
5.3.240.0060.06612.72
5.3.230.0070.06312.71
5.3.220.0110.05812.68
5.3.210.0070.05812.68
5.3.200.0100.05812.68
5.3.190.0100.06312.68
5.3.180.0080.05512.67
5.3.170.0080.05612.67
5.3.160.0120.05012.67
5.3.150.0100.05412.68
5.3.140.0100.07112.66
5.3.130.0110.06412.66
5.3.120.0090.05712.66
5.3.110.0110.06112.66
5.3.100.0110.06012.12
5.3.90.0110.06412.10
5.3.80.0090.05412.09
5.3.70.0100.05012.09
5.3.60.0090.05012.08
5.3.50.0100.04712.01
5.3.40.0100.05312.01
5.3.30.0110.06211.97
5.3.20.0120.05211.75
5.3.10.0110.06011.72
5.3.00.0120.06611.71
5.2.170.0130.0489.21
5.2.160.0110.0429.21
5.2.150.0080.0519.21
5.2.140.0100.0489.20
5.2.130.0070.0389.17
5.2.120.0080.0459.16
5.2.110.0120.0519.17
5.2.100.0080.0429.17
5.2.90.0050.0459.17
5.2.80.0090.0399.16
5.2.70.0080.0409.16
5.2.60.0060.0429.12
5.2.50.0060.0399.09
5.2.40.0100.0689.07
5.2.30.0060.0539.04
5.2.20.0060.0479.03
5.2.10.0080.0448.94
5.2.00.0080.0468.79
5.1.60.0080.0338.08
5.1.50.0070.0288.08
5.1.40.0050.0318.06
5.1.30.0070.0308.41
5.1.20.0070.0328.43
5.1.10.0080.0288.16
5.1.00.0050.0328.16
5.0.50.0060.0256.63
5.0.40.0040.0246.50
5.0.30.0060.0356.30
5.0.20.0050.0236.27
5.0.10.0060.0256.25
5.0.00.0050.0396.25
4.4.90.0040.0204.78
4.4.80.0040.0204.76
4.4.70.0040.0204.75
4.4.60.0070.0264.75
4.4.50.0040.0254.77
4.4.40.0050.0414.71
4.4.30.0060.0194.76
4.4.20.0040.0304.84
4.4.10.0050.0254.85
4.4.00.0050.0364.76
4.3.110.0100.0404.67
4.3.100.0050.0214.67
4.3.90.0040.0194.63
4.3.80.0040.0304.58
4.3.70.0030.0204.63
4.3.60.0050.0204.63
4.3.50.0050.0194.63
4.3.40.0050.0304.54
4.3.30.0040.0213.29
4.3.20.0070.0283.27
4.3.10.0050.0293.24
4.3.00.0130.0237.29

preferences:
140.04 ms | 1394 KiB | 7 Q