3v4l.org

run code in 300+ PHP versions simultaneously
<?php list($a,$b) = "aa"; var_dump($a,$b); $a[0]="ab"; list($a,$b) = $a[0]; var_dump($a,$b);'

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.370.0870.04318.55
5.4.360.0800.04718.68
5.4.350.0320.04514.22
5.4.340.0300.04314.18
5.4.320.0340.04414.50
5.4.310.0360.04014.61
5.4.300.0320.04314.59
5.4.290.0320.04314.58
5.4.280.0320.04414.51
5.4.270.0320.04214.50
5.4.260.0320.04314.43
5.4.250.0310.04514.43
5.4.240.0320.04914.47
5.4.230.0350.04614.46
5.4.220.0360.04514.50
5.4.210.0330.04614.48
5.4.200.0330.04313.82
5.4.190.0310.04214.50
5.4.180.0400.04314.50
5.4.170.0320.04514.52
5.4.160.0340.04014.50
5.4.150.0320.04014.49
5.4.140.0340.04413.48
5.4.130.0340.04113.46
5.4.120.0340.03913.44
5.4.110.0320.03913.43
5.4.100.0340.04113.48
5.4.90.0320.04313.44
5.4.80.0300.04113.45
5.4.70.0320.04213.49
5.4.60.0300.04313.44
5.4.50.0310.04013.48
5.4.40.0290.04313.42
5.4.30.0310.04613.40
5.4.20.0280.04113.42
5.4.10.0300.03813.41
5.4.00.0280.04112.95
5.3.290.0310.04913.43
5.3.280.0300.04313.35
5.3.270.0320.04313.32
5.3.260.0280.04513.35
5.3.250.0320.04013.38
5.3.240.0250.04513.36
5.3.230.0300.04413.33
5.3.220.0380.04513.34
5.3.210.0330.04513.29
5.3.200.0300.04513.30
5.3.190.0310.04513.30
5.3.180.0290.04313.28
5.3.170.0310.04313.30
5.3.160.0370.04713.27
5.3.150.0330.04313.27
5.3.140.0280.04513.32
5.3.130.0330.04713.30
5.3.120.0340.03913.28
5.3.110.0260.04713.29
5.3.100.0330.03912.79
5.3.90.0340.03812.77
5.3.80.0360.03512.76
5.3.70.0300.04212.73
5.3.60.0330.04212.71
5.3.50.0270.04612.64
5.3.40.0310.04312.62
5.3.30.0290.04212.61
5.3.20.0300.04312.38
5.3.10.0300.04212.32
5.3.00.0280.04512.36
5.2.170.0290.0379.81
5.2.160.0230.0339.82
5.2.150.0250.0349.82
5.2.140.0250.0359.88
5.2.130.0220.0349.81
5.2.120.0250.0329.77
5.2.110.0250.0369.78
5.2.100.0220.0419.81
5.2.90.0280.0419.78
5.2.80.0220.0359.79
5.2.70.0250.0339.76
5.2.60.0270.0319.71
5.2.50.0240.0329.72
5.2.40.0200.0359.70
5.2.30.0210.0359.66
5.2.20.0210.0359.63
5.2.10.0240.0329.58
5.2.00.0270.0339.43
5.1.60.0200.0288.74
5.1.50.0200.0308.72
5.1.40.0230.0288.70
5.1.30.0210.0319.09
5.1.20.0220.0329.08
5.1.10.0210.0308.83
5.1.00.0220.0318.83
5.0.50.0160.0207.30
5.0.40.0120.0257.14
5.0.30.0120.0376.93
5.0.20.0100.0296.98
5.0.10.0120.0236.95
5.0.00.0130.0366.93
4.4.90.0130.0225.15
4.4.80.0090.0185.14
4.4.70.0120.0185.14
4.4.60.0130.0155.14
4.4.50.0090.0205.14
4.4.40.0130.0285.11
4.4.30.0100.0185.13
4.4.20.0140.0185.22
4.4.10.0130.0165.21
4.4.00.0100.0285.14
4.3.110.0110.0175.04
4.3.100.0150.0135.07
4.3.90.0090.0175.04
4.3.80.0080.0294.98
4.3.70.0130.0165.04
4.3.60.0090.0215.04
4.3.50.0100.0185.02
4.3.40.0120.0294.95
4.3.30.0070.0183.90
4.3.20.0070.0173.87
4.3.10.0060.0173.83
4.3.00.0070.0206.94

preferences:
198.7 ms | 1394 KiB | 7 Q