3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php list($x[], $x[], $x[], $x[1]) = ['azul', 'amarelo', 'vermelho', 'verde']; echo $x[3].'-'.$x[1].'-'.$x[2];
based on Dvjkd

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.00.0040.00716.68
7.2.130.0070.00716.78
7.2.120.0030.00616.95
7.2.110.0070.01116.88
7.2.100.0040.00716.74
7.2.90.0160.00417.01
7.2.80.0030.01216.94
7.2.70.0090.00616.61
7.2.60.0050.01116.89
7.2.50.0130.00716.67
7.2.40.0040.00816.86
7.2.30.0090.00616.79
7.2.20.0140.00016.72
7.2.10.0030.01016.66
7.2.00.0040.01118.04
7.1.250.0110.00715.53
7.1.240.0000.00815.57
7.1.230.0070.00315.89
7.1.220.0070.00615.68
7.1.210.0060.00615.70
7.1.200.0030.00915.68
7.1.190.0040.00715.57
7.1.180.0060.00615.69
7.1.170.0070.01015.81
7.1.160.0040.00715.50
7.1.150.0110.00515.77
7.1.140.0000.01015.62
7.1.130.0030.00615.64
7.1.120.0000.01315.99
7.1.110.0070.00315.62
7.1.100.0060.00616.94
7.1.90.0060.00615.70
7.1.80.0000.01015.54
7.1.70.0030.00716.57
7.1.60.0080.00517.49
7.1.50.0030.01216.27
7.1.40.0090.00615.65
7.1.30.0110.00815.51
7.1.20.0000.00915.89
7.1.10.0030.01015.67
7.1.00.0030.04319.14
7.0.330.0000.01015.54
7.0.320.0040.00715.54
7.0.310.0030.00615.44
7.0.300.0130.00615.29
7.0.290.0030.00615.24
7.0.280.0140.01115.39
7.0.270.0030.00815.28
7.0.260.0000.01414.92
7.0.250.0090.00015.30
7.0.240.0160.00015.56
7.0.230.0050.00215.06
7.0.220.0100.00315.28
7.0.210.0030.01015.32
7.0.200.0190.00414.94
7.0.190.0070.00315.50
7.0.180.0120.00015.30
7.0.170.0040.00415.22
7.0.160.0060.00915.21
7.0.150.0120.00615.40
7.0.140.0000.01015.26
7.0.130.0030.00615.36
7.0.120.0000.01115.52
7.0.110.0060.00315.40
7.0.100.0070.00315.37
7.0.90.0070.00714.91
7.0.80.0100.00015.46
7.0.70.0070.00315.27
7.0.60.0100.03317.58
7.0.50.0080.04016.74
7.0.40.0070.03516.56
7.0.30.0100.02816.84
7.0.20.0200.04016.74
7.0.10.0080.03016.85
7.0.00.0070.02516.83
5.6.380.0070.00714.29
5.6.370.0000.01314.14
5.6.360.0030.01113.84
5.6.350.0090.00614.52
5.6.340.0040.00714.40
5.6.330.0150.00314.34
5.6.320.0090.00614.50
5.6.310.0080.00814.42
5.6.300.0130.00014.53
5.6.290.0030.00814.56
5.6.280.0070.01517.64
5.6.270.0000.01014.17
5.6.260.0060.00614.47
5.6.250.0040.00714.71
5.6.240.0070.00414.67
5.6.230.0090.00414.49
5.6.220.0030.00714.24
5.6.210.0080.03017.43
5.6.200.0070.02816.12
5.6.190.0070.03517.53
5.6.180.0150.03717.22
5.6.170.0130.03417.39
5.6.160.0050.03817.61
5.6.150.0120.02816.28
5.6.140.0050.04016.33
5.6.130.0080.04316.29
5.6.120.0050.04417.49
5.6.110.0080.04517.72
5.6.100.0100.03517.73
5.6.90.0050.04517.36
5.6.80.0100.04017.29
5.6.70.0060.00614.21
5.6.60.0030.00913.94
5.6.50.0070.00714.50
5.6.40.0080.00414.08
5.6.30.0030.00714.51
5.6.20.0030.00614.11
5.6.10.0090.00314.13
5.6.00.0000.01014.37
5.5.380.0030.00311.18
5.5.370.0030.00311.39
5.5.360.0030.00511.11
5.5.350.0270.03215.57
5.5.340.0130.02614.49
5.5.330.0040.04515.75
5.5.320.0130.03015.70
5.5.310.0150.02715.74
5.5.300.0040.04514.63
5.5.290.0030.02914.50
5.5.280.0050.02715.85
5.5.270.0070.04116.12
5.5.260.0070.02516.03
5.5.250.0130.03815.93
5.5.240.0050.04315.66
5.5.230.0030.00710.98
5.5.220.0000.01010.82
5.5.210.0030.00310.96
5.5.200.0000.00611.01
5.5.190.0080.00010.94
5.5.180.0030.00311.15
5.5.170.0070.00011.19
5.5.160.0030.00611.21
5.5.150.0030.00711.06
5.5.140.0030.00710.99
5.5.130.0030.00710.82
5.5.120.0050.00011.23
5.5.110.0030.00811.35
5.5.100.0000.01110.96
5.5.90.0030.00310.71
5.5.80.0000.00711.02
5.5.70.0000.01111.00
5.5.60.0070.00411.09
5.5.50.0040.00410.97
5.5.40.0050.00311.22
5.5.30.0000.00610.75
5.5.20.0070.00411.24
5.5.10.0030.00611.06
5.5.00.0050.00211.03
5.4.450.0140.02715.22
5.4.440.0150.02715.09
5.4.430.0090.03015.25
5.4.420.0100.03114.96
5.4.410.0090.03714.89
5.4.400.0120.03815.24
5.4.390.0080.04314.95
5.4.380.0050.04015.15
5.4.370.0150.03315.10
5.4.360.0050.03314.88
5.4.350.0060.03115.12
5.4.340.0110.03015.05
5.4.330.0050.00010.95
5.4.320.0090.02815.10
5.4.310.0120.02714.96
5.4.300.0130.02514.96
5.4.290.0180.02015.05
5.4.280.0100.03115.07
5.4.270.0110.02714.99
5.4.260.0100.02715.06
5.4.250.0120.02515.12
5.4.240.0160.02114.88
5.4.230.0130.02814.88
5.4.220.0080.03115.02
5.4.210.0150.02515.11
5.4.200.0120.02515.04
5.4.190.0080.03015.08
5.4.180.0070.03014.81
5.4.170.0140.02415.10
5.4.160.0140.02515.12
5.4.150.0150.02515.03
5.4.140.0120.02613.57
5.4.130.0130.02213.64
5.4.120.0050.03013.71
5.4.110.0090.02813.70
5.4.100.0070.03113.70
5.4.90.0100.02513.75
5.4.80.0110.02513.69
5.4.70.0080.02713.64
5.4.60.0100.02513.65
5.4.50.0140.02413.73
5.4.40.0080.02813.54
5.4.30.0130.02113.76
5.4.20.0070.02813.60
5.4.10.0090.03013.70
5.4.00.0080.02813.25
5.3.290.0100.05714.55
5.3.280.0130.05314.55
5.3.270.0130.05314.49
5.3.260.0200.05014.59
5.3.250.0330.05714.56
5.3.240.0170.05014.56
5.3.230.0130.05314.44
5.3.220.0270.04714.68
5.3.210.0170.05014.45
5.3.200.0100.05314.41
5.3.190.0130.05314.41