3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $♫ = "music"; var_dump( $♫ ); // string(5) "music" $string = "♫"; echo mb_strlen($string, '8bit'); // 3

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.2.00.0040.01219.39
7.1.200.0030.01315.88
7.1.100.0040.01217.86
7.1.70.0040.00416.90
7.1.60.0060.01919.33
7.1.50.0130.01017.05
7.1.00.0030.07722.32
7.0.200.0460.00314.55
7.0.140.0000.07321.97
7.0.60.0030.04019.90
7.0.50.0070.04317.86
7.0.40.0070.04720.07
7.0.30.0170.04720.16
7.0.20.0330.08020.12
7.0.10.0070.04020.00
7.0.00.0030.06720.31
5.6.280.0030.07320.91
5.6.210.0130.07320.46
5.6.200.0100.08018.15
5.6.190.0100.09020.63
5.6.180.0270.04720.63
5.6.170.0100.04720.45
5.6.160.0100.08020.61
5.6.150.0030.04318.12
5.6.140.0100.07318.21
5.6.130.0100.06318.12
5.6.120.0070.06020.99
5.6.110.0070.08721.00
5.6.100.0030.07721.00
5.6.90.0130.03320.87
5.6.80.0170.08020.38
5.5.350.0000.07320.31
5.5.340.0000.05017.98
5.5.330.0070.08020.12
5.5.320.0370.08020.31
5.5.310.0130.07020.29
5.5.300.0130.04317.96
5.5.290.0070.05017.89
5.5.280.0130.06320.78
5.5.270.0170.08020.89
5.5.260.0230.06720.79
5.5.250.0000.05320.46
5.5.240.0200.08320.27
5.4.450.0470.06319.58
5.4.440.0900.05719.10
5.4.430.0800.05719.60
5.4.420.0800.05719.46
5.4.410.0530.06019.42
5.4.400.0070.06019.14
5.4.390.0730.06019.19
5.4.380.0270.05018.65
5.4.370.0030.05318.55
5.4.360.0100.05018.62
5.4.350.0070.03411.97
5.4.340.0020.04011.97
5.4.320.0070.05112.45
5.4.310.0070.04512.45
5.4.300.0110.04412.45
5.4.290.0080.04812.45
5.4.280.0100.05112.32
5.4.270.0110.06212.32
5.4.260.0110.10812.32
5.4.250.0050.05212.32
5.4.240.0090.04912.32
5.4.230.0080.04712.31
5.4.220.0090.07112.31
5.4.210.0070.03712.31
5.4.200.0060.04412.31
5.4.190.0120.04112.30
5.4.180.0150.06312.30
5.4.170.0140.06312.32
5.4.160.0090.07312.31
5.4.150.0110.05212.31
5.4.140.0140.04912.00
5.4.130.0160.04311.98
5.4.120.0100.06011.94
5.4.110.0210.12011.93
5.4.100.0130.07811.94
5.4.90.0250.12211.93
5.4.80.0150.05711.93
5.4.70.0060.05811.93
5.4.60.0100.04411.93
5.4.50.0030.05811.93
5.4.40.0360.09311.92
5.4.30.0120.07411.92
5.4.20.0170.08811.92
5.4.10.0140.05611.92
5.4.00.0070.04611.41
5.3.290.0050.04012.80
5.3.280.0280.08212.71
5.3.270.0190.08212.73
5.3.260.0200.07512.72
5.3.250.0200.09012.72
5.3.240.0120.05812.72
5.3.230.0140.06612.71
5.3.220.0170.06712.68
5.3.210.0130.08312.68
5.3.200.0200.04512.68
5.3.190.0300.12012.68
5.3.180.0180.07912.67
5.3.170.0110.05312.67
5.3.160.0130.06812.67
5.3.150.0140.06812.68
5.3.140.0150.07612.66
5.3.130.0340.13312.66
5.3.120.0160.09112.66
5.3.110.0110.09512.66
5.3.100.0090.06712.12
5.3.90.0100.05912.08
5.3.80.0100.08412.07
5.3.70.0090.07512.08
5.3.60.0070.06212.06
5.3.50.0060.06112.00
5.3.40.0110.05712.00
5.3.30.0080.05311.94
5.3.20.0100.05211.70
5.3.10.0110.05511.67
5.3.00.0150.06111.66
5.2.170.0080.0489.15
5.2.160.0110.0559.16
5.2.150.0150.0599.15
5.2.140.0120.0469.14
5.2.130.0130.0619.11
5.2.120.0160.0669.11
5.2.110.0120.0469.11
5.2.100.0080.0479.11
5.2.90.0100.0529.11
5.2.80.0160.0439.11
5.2.70.0150.0579.10
5.2.60.0040.0499.05
5.2.50.0080.0339.03
5.2.40.0050.0429.00
5.2.30.0030.0468.98
5.2.20.0150.0478.97
5.2.10.0120.0368.91
5.2.00.0050.0468.76
5.1.60.0080.0368.05
5.1.50.0080.0388.05
5.1.40.0080.0448.04
5.1.30.0100.0408.38
5.1.20.0130.0458.40
5.1.10.0100.0348.13
5.1.00.0080.0358.12
5.0.50.0080.0366.61
5.0.40.0060.0266.46
5.0.30.0080.0456.27
5.0.20.0120.0496.25
5.0.10.0120.0826.22
5.0.00.0080.0376.21
4.4.90.0060.0264.78
4.4.80.0120.0314.75
4.4.70.0060.0204.76
4.4.60.0060.0204.76
4.4.50.0030.0204.77
4.4.40.0060.0504.70
4.4.30.0030.0174.76
4.4.20.0040.0174.84
4.4.10.0070.0224.85
4.4.00.0040.0344.76
4.3.110.0050.0274.67
4.3.100.0020.0174.66
4.3.90.0020.0174.64
4.3.80.0060.0264.59
4.3.70.0050.0144.63
4.3.60.0020.0194.63
4.3.50.0030.0184.63
4.3.40.0040.0254.54
4.3.30.0250.0303.27
4.3.20.0090.0483.25
4.3.10.0110.0553.22
4.3.00.0170.0177.44