3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = function ($x) {echo $x;} $a = array('f' => $f); $a['f']('hi!');

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.0090.05012.03
5.4.340.0060.04112.03
5.4.320.0050.04512.52
5.4.310.0040.04212.52
5.4.300.0070.04012.52
5.4.290.0040.04912.51
5.4.280.0070.04512.41
5.4.270.0090.06412.41
5.4.260.0080.04312.41
5.4.250.0050.04312.41
5.4.240.0110.04112.41
5.4.230.0050.04112.40
5.4.220.0090.05612.40
5.4.210.0110.03412.40
5.4.200.0050.04312.40
5.4.190.0100.04812.39
5.4.180.0110.04412.40
5.4.170.0170.08912.40
5.4.160.0060.05412.40
5.4.150.0070.04812.39
5.4.140.0130.04512.09
5.4.130.0100.04412.07
5.4.120.0120.05912.03
5.4.110.0120.03512.03
5.4.100.0110.03512.03
5.4.90.0080.04212.03
5.4.80.0070.04212.03
5.4.70.0050.04612.03
5.4.60.0060.04212.03
5.4.50.0070.04912.03
5.4.40.0110.04712.01
5.4.30.0060.03912.02
5.4.20.0070.03612.00
5.4.10.0070.03812.02
5.4.00.0090.04711.50
5.3.290.0090.04612.80
5.3.280.0050.04212.71
5.3.270.0100.03912.72
5.3.260.0070.04412.72
5.3.250.0190.07012.71
5.3.240.0090.05312.72
5.3.230.0060.05212.71
5.3.220.0090.04612.68
5.3.210.0090.04412.68
5.3.200.0130.04512.68
5.3.190.0170.04812.68
5.3.180.0130.05412.68
5.3.170.0120.03312.67
5.3.160.0080.04012.67
5.3.150.0090.06012.67
5.3.140.0080.03912.66
5.3.130.0070.04512.66
5.3.120.0110.04812.66
5.3.110.0080.05912.66
5.3.100.0070.04312.12
5.3.90.0090.03712.11
5.3.80.0080.04112.09
5.3.70.0160.05112.11
5.3.60.0090.05012.08
5.3.50.0070.04812.02
5.3.40.0090.04612.02
5.3.30.0090.04711.98
5.3.20.0060.04811.77
5.3.10.0080.04811.73
5.3.00.0070.04511.71
5.2.170.0080.0449.18
5.2.160.0100.0439.18
5.2.150.0090.0409.18
5.2.140.0100.0559.18
5.2.130.0090.0409.14
5.2.120.0160.0509.14
5.2.110.0050.0319.15
5.2.100.0040.0329.14
5.2.90.0090.0299.14
5.2.80.0070.0299.14
5.2.70.0070.0289.14
5.2.60.0090.0409.09
5.2.50.0090.0349.05
5.2.40.0110.0529.04
5.2.30.0050.0339.01
5.2.20.0070.0349.01
5.2.10.0050.0318.93
5.2.00.0060.0378.78
5.1.60.0040.0358.07
5.1.50.0090.0258.06
5.1.40.0070.0378.05
5.1.30.0090.0518.40
5.1.20.0120.0458.41
5.1.10.0140.0438.14
5.1.00.0080.0298.14
5.0.50.0060.0266.63
5.0.40.0110.0476.48
5.0.30.0060.0396.29
5.0.20.0060.0236.26
5.0.10.0030.0356.24
5.0.00.0050.0366.23
4.4.90.0070.0184.78
4.4.80.0070.0184.75
4.4.70.0080.0384.76
4.4.60.0030.0174.75
4.4.50.0030.0204.77
4.4.40.0040.0304.71
4.4.30.0060.0194.76
4.4.20.0060.0184.84
4.4.10.0050.0204.85
4.4.00.0030.0324.76
4.3.110.0090.0194.67
4.3.100.0050.0304.66
4.3.90.0040.0164.64
4.3.80.0040.0244.58
4.3.70.0040.0234.63
4.3.60.0030.0204.63
4.3.50.0080.0154.63
4.3.40.0040.0294.54
4.3.30.0030.0183.28
4.3.20.0040.0173.26
4.3.10.0020.0173.21
4.3.00.0000.0276.78

preferences:
141.89 ms | 1394 KiB | 7 Q