3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $q = msg_get_queue(123456); msg_send($q, 1, "a\x00b\xF0"); msg_receive($q, 1, $msgtype, 100, $msg); for ($i = 0, $len = strlen($msg); $i < $len; $i++) { echo ord($msg[$i]), "\n"; }

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.00916.54
7.2.130.0100.00716.51
7.2.120.0000.01416.82
7.2.110.0090.00916.52
7.2.100.0140.00416.88
7.2.90.0120.00616.57
7.2.80.0070.00716.71
7.2.70.0130.00316.57
7.2.60.0070.00616.76
7.2.50.0110.00716.49
7.2.40.0070.01016.77
7.2.30.0130.00716.72
7.2.20.0070.01016.55
7.2.10.0100.00716.65
7.2.00.0060.00917.86
7.1.250.0060.00615.41
7.1.240.0100.00315.55
7.1.230.0170.00315.37
7.1.220.0120.00915.58
7.1.210.0090.00615.25
7.1.200.0050.00915.47
7.1.190.0100.00315.52
7.1.180.0130.00615.48
7.1.170.0040.01115.63
7.1.160.0060.00615.67
7.1.150.0060.00915.43
7.1.140.0150.00315.34
7.1.130.0060.00915.43
7.1.120.0090.00615.53
7.1.110.0120.00415.64
7.1.100.0050.00916.85
7.1.90.0040.00815.70
7.1.80.0030.01015.68
7.1.70.0090.00516.35
7.1.60.0100.01017.46
7.1.50.0140.00216.22
7.1.40.0060.01115.66
7.1.30.0080.00815.39
7.1.20.0110.00715.57
7.1.10.0140.00015.50
7.1.00.0100.03818.94
7.0.330.0030.01614.83
7.0.320.0090.00615.04
7.0.310.0090.00915.14
7.0.300.0140.00315.09
7.0.290.0080.00615.16
7.0.280.0110.00715.36
7.0.270.0040.01115.31
7.0.260.0100.00315.14
7.0.250.0100.00315.18
7.0.240.0180.00015.50
7.0.230.0070.01015.31
7.0.220.0070.00715.05
7.0.210.0040.01115.11
7.0.200.0080.00615.77
7.0.190.0060.00815.31
7.0.180.0080.00315.34
7.0.170.0060.00915.19
7.0.160.0040.01115.31
7.0.150.0070.00715.07
7.0.140.0120.00314.95
7.0.130.0070.01015.16
7.0.120.0070.00715.05
7.0.110.0060.01215.27
7.0.100.0110.00315.28
7.0.90.0070.00715.17
7.0.80.0100.00715.27
7.0.70.0120.00615.33
7.0.60.0170.04318.33
7.0.50.0060.02716.68
7.0.40.0090.04716.62
7.0.30.0210.04616.71
7.0.20.0220.03316.70
7.0.10.0040.02916.72
7.0.00.0110.02616.53
5.6.380.0080.00313.81
5.6.370.0040.01514.27
5.6.360.0100.01014.27
5.6.350.0080.00513.76
5.6.340.0040.01314.39
5.6.330.0130.00314.04
5.6.320.0080.00813.91
5.6.310.0030.01313.68
5.6.300.0120.00613.86
5.6.290.0110.00513.70
5.6.280.0040.02217.42
5.6.270.0090.00914.10
5.6.260.0100.00614.00
5.6.250.0090.01214.02
5.6.240.0090.00914.20
5.6.230.0100.01013.93
5.6.220.0110.00714.11
5.6.210.0070.02417.39
5.6.200.0090.04016.05
5.6.190.0120.04217.22
5.6.180.0200.04017.42
5.6.170.0170.04617.22
5.6.160.0050.02617.15
5.6.150.0120.03816.17
5.6.140.0050.04215.99
5.6.130.0050.04716.10
5.6.120.0050.02717.39
5.6.110.0070.04417.50
5.6.100.0100.04317.53
5.6.90.0100.04617.51
5.6.80.0070.02217.21
5.6.70.0060.00613.68
5.6.60.0030.01413.81
5.6.50.0060.00313.77
5.6.40.0080.00813.75
5.6.30.0130.00013.84
5.6.20.0030.00714.11
5.6.10.0060.00613.76
5.6.00.0030.01213.77
5.5.380.0030.01010.76
5.5.370.0000.01110.57
5.5.360.0100.00410.34
5.5.350.0050.04215.52
5.5.340.0050.04514.29
5.5.330.0040.03815.28
5.5.320.0120.02315.46
5.5.310.0130.02515.55
5.5.300.0050.03014.50
5.5.290.0070.02914.36
5.5.280.0070.02515.90
5.5.270.0050.02715.78
5.5.260.0030.04515.65
5.5.250.0050.02915.73
5.5.240.0050.01815.34
5.5.230.0040.00710.70
5.5.220.0030.01010.69
5.5.210.0060.00610.68
5.5.200.0000.00810.74
5.5.190.0090.00310.80
5.5.180.0060.00610.65
5.5.170.0090.00310.83
5.5.160.0040.00410.68
5.5.150.0060.00310.58
5.5.140.0030.00710.51
5.5.130.0030.00310.80
5.5.120.0110.00410.93
5.5.110.0090.00310.79
5.5.100.0000.00710.65
5.5.90.0000.01310.74
5.5.80.0040.00710.44
5.5.70.0030.00610.88
5.5.60.0030.00910.81
5.5.50.0090.00310.81
5.5.40.0030.00310.56
5.5.30.0090.00310.71
5.5.20.0000.00610.79
5.5.10.0030.00910.33
5.5.00.0030.00710.69
5.4.450.0830.05719.46
5.4.440.0800.07319.45
5.4.430.0830.05319.47
5.4.420.0830.05019.54
5.4.410.0800.05019.41
5.4.400.1100.04319.22
5.4.390.1030.05019.15
5.4.380.0870.05719.22
5.4.370.0900.05019.22
5.4.360.0970.05019.11
5.4.350.0970.05019.05
5.4.340.0770.05719.13
5.4.320.0800.05319.22
5.4.310.0900.05318.89
5.4.300.0900.04019.22
5.4.290.0800.04719.22
5.4.280.0830.05018.88
5.4.270.0770.06319.23
5.4.260.0970.07018.92
5.4.250.0700.05719.09
5.4.240.0130.05719.30
5.4.230.0170.05319.12
5.4.220.0200.05319.09
5.4.210.0330.05319.23
5.4.200.0300.05719.21
5.4.190.0730.05719.11
5.4.180.0830.05019.21
5.4.170.0930.05019.13
5.4.160.0270.04319.22
5.4.150.0230.05019.20
5.4.140.0200.05016.46
5.4.130.0070.05716.28
5.4.120.0200.04316.43
5.4.110.0230.05316.45
5.4.100.0100.05016.46
5.3.290.0830.06014.59
5.3.280.0030.06314.47
5.3.270.0800.05714.36
5.3.260.0430.05314.53
5.3.250.0230.04714.54
5.3.240.0130.05314.48
5.3.230.0200.04714.49
5.3.220.0230.04714.58
5.3.210.0130.06014.51
5.3.200.0230.04714.37