3v4l.org

run code in 300+ PHP versions simultaneously
<?php const ABC = 1; $a = function ($a, $b = ABC) { echo $a . $b; } $a('asdf');

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.03312.03
5.4.340.0090.05212.03
5.4.320.0120.06912.52
5.4.310.0230.07012.52
5.4.300.0150.07112.52
5.4.290.0120.05312.52
5.4.280.0050.04012.41
5.4.270.0060.05312.41
5.4.260.0070.04712.41
5.4.250.0060.05212.41
5.4.240.0090.06012.41
5.4.230.0120.07312.40
5.4.220.0150.04712.40
5.4.210.0090.07012.40
5.4.200.0140.04412.40
5.4.190.0190.09112.39
5.4.180.0110.06012.39
5.4.170.0090.03512.40
5.4.160.0080.04512.40
5.4.150.0060.04612.40
5.4.140.0050.05012.09
5.4.130.0040.03712.07
5.4.120.0080.04112.04
5.4.110.0080.05012.03
5.4.100.0110.04712.03
5.4.90.0100.05812.03
5.4.80.0060.04512.03
5.4.70.0090.03312.02
5.4.60.0080.03812.03
5.4.50.0070.03612.03
5.4.40.0130.06112.02
5.4.30.0190.05512.01
5.4.20.0170.07712.01
5.4.10.0140.04412.01
5.4.00.0070.04011.50
5.3.290.0120.03912.80
5.3.280.0100.03912.70
5.3.270.0060.05812.72
5.3.260.0140.07212.72
5.3.250.0050.06612.72
5.3.240.0090.05012.72
5.3.230.0080.05012.71
5.3.220.0070.05712.68
5.3.210.0180.08812.68
5.3.200.0210.06512.68
5.3.190.0100.05912.68
5.3.180.0130.06312.67
5.3.170.0340.10312.67
5.3.160.0120.06312.67
5.3.150.0120.04612.67
5.3.140.0160.07812.66
5.3.130.0160.07812.66
5.3.120.0180.06312.66
5.3.110.0080.04312.66
5.3.100.0080.04812.13
5.3.90.0120.04412.10
5.3.80.0110.04212.09
5.3.70.0180.05712.10
5.3.60.0160.04912.08
5.3.50.0170.07912.02
5.3.40.0190.06912.02
5.3.30.0200.08511.98
5.3.20.0130.05411.77
5.3.10.0060.03511.73
5.3.00.0050.04711.71
5.2.170.0100.0509.18
5.2.160.0080.0659.18
5.2.150.0090.0709.18
5.2.140.0030.0429.18
5.2.130.0240.0859.14
5.2.120.0090.0449.14
5.2.110.0040.0379.14
5.2.100.0020.0319.14
5.2.90.0030.0339.14
5.2.80.0060.0389.14
5.2.70.0060.0309.14
5.2.60.0020.0389.09
5.2.50.0070.0329.05
5.2.40.0060.0319.04
5.2.30.0090.0489.02
5.2.20.0080.0399.01
5.2.10.0050.0478.93
5.2.00.0080.0448.78
5.1.60.0050.0288.07
5.1.50.0050.0358.07
5.1.40.0040.0348.05
5.1.30.0060.0348.40
5.1.20.0050.0478.42
5.1.10.0050.0338.14
5.1.00.0060.0298.14
5.0.50.0060.0256.62
5.0.40.0060.0196.48
5.0.30.0010.0366.29
5.0.20.0070.0176.27
5.0.10.0060.0216.24
5.0.00.0020.0396.23
4.4.90.0030.0174.78
4.4.80.0040.0244.76
4.4.70.0020.0194.76
4.4.60.0030.0164.76
4.4.50.0010.0174.77
4.4.40.0030.0254.71
4.4.30.0020.0174.76
4.4.20.0030.0194.85
4.4.10.0030.0184.84
4.4.00.0000.0324.76
4.3.110.0050.0154.67
4.3.100.0020.0224.67
4.3.90.0060.0144.64
4.3.80.0030.0264.58
4.3.70.0020.0184.63
4.3.60.0030.0174.63
4.3.50.0070.0224.63
4.3.40.0030.0324.53
4.3.30.0020.0173.29
4.3.20.0030.0213.26
4.3.10.0030.0163.21
4.3.00.0100.0236.92

preferences:
150.75 ms | 1394 KiB | 7 Q