3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = function () { return 'hehe'; } $b = function ($callback) { return $callback(); } $b($a);

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.0050.03812.38
5.4.270.0040.03912.38
5.4.260.0070.03612.38
5.4.250.0020.04312.38
5.4.240.0040.03912.38
5.4.230.0060.03812.37
5.4.220.0060.03712.37
5.4.210.0040.04012.38
5.4.200.0110.04812.37
5.4.190.0140.04512.37
5.4.180.0060.05212.37
5.4.170.0100.04912.38
5.4.160.0100.04712.38
5.4.150.0080.04412.37
5.4.140.0110.04312.06
5.4.130.0110.04512.04
5.4.120.0120.05012.00
5.4.110.0050.04112.00
5.4.100.0060.04012.00
5.4.90.0060.04012.00
5.4.80.0070.05412.00
5.4.70.0030.05612.00
5.4.60.0100.04412.00
5.4.50.0070.03512.00
5.4.40.0080.04511.99
5.4.30.0040.03811.98
5.4.20.0050.03711.98
5.4.10.0070.04511.98
5.4.00.0040.05311.48
5.3.280.0070.04712.71
5.3.270.0080.05712.72
5.3.260.0070.05712.72
5.3.250.0080.05512.71
5.3.240.0100.05412.72
5.3.230.0160.04812.71
5.3.220.0070.04012.68
5.3.210.0100.04512.68
5.3.200.0070.04912.68
5.3.190.0060.04012.68
5.3.180.0060.03912.67
5.3.170.0090.03612.67
5.3.160.0050.03812.67
5.3.150.0090.03812.67
5.3.140.0050.04112.66
5.3.130.0070.04112.66
5.3.120.0070.04112.66
5.3.110.0070.04012.65
5.3.100.0080.03612.12
5.3.90.0030.04012.09
5.3.80.0120.03312.07
5.3.70.0050.04512.07
5.3.60.0090.03712.06
5.3.50.0100.04312.00
5.3.40.0070.04512.00
5.3.30.0090.04811.95
5.3.20.0090.04211.74
5.3.10.0070.04011.70
5.3.00.0040.04711.68
5.2.170.0080.0349.14
5.2.160.0070.0439.15
5.2.150.0100.0439.16
5.2.140.0070.0449.14
5.2.130.0050.0469.11
5.2.120.0090.0419.10
5.2.110.0070.0459.11
5.2.100.0110.0379.11
5.2.90.0070.0429.11
5.2.80.0060.0449.11
5.2.70.0080.0429.11
5.2.60.0070.0409.06
5.2.50.0040.0439.03
5.2.40.0100.0339.00
5.2.30.0100.0378.98
5.2.20.0070.0368.97
5.2.10.0050.0308.90
5.2.00.0010.0348.76
5.1.60.0050.0248.04
5.1.50.0100.0298.04
5.1.40.0030.0278.03
5.1.30.0060.0268.38
5.1.20.0040.0278.40
5.1.10.0040.0278.12
5.1.00.0060.0258.13
5.0.50.0040.0206.60
5.0.40.0050.0196.46
5.0.30.0050.0386.27
5.0.20.0060.0176.25
5.0.10.0060.0196.22
5.0.00.0060.0476.20
4.4.90.0030.0164.78
4.4.80.0010.0174.75
4.4.70.0010.0174.76
4.4.60.0050.0134.76
4.4.50.0030.0154.77
4.4.40.0020.0264.70
4.4.30.0040.0154.76
4.4.20.0060.0124.84
4.4.10.0040.0214.85
4.4.00.0020.0324.76
4.3.110.0060.0174.67
4.3.100.0040.0194.67
4.3.90.0030.0154.64
4.3.80.0030.0284.59
4.3.70.0050.0174.63
4.3.60.0040.0204.62
4.3.50.0030.0174.63
4.3.40.0030.0254.54
4.3.30.0010.0183.27
4.3.20.0040.0133.25
4.3.10.0010.0173.21
4.3.00.0130.0237.25

preferences:
142.65 ms | 1394 KiB | 7 Q