3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $samplerequesturi = 'string(42) "{"ERROR_MSG":"Invalid path for user raol"}" '; $samplerequesturi = preg_replace('@^string\(\d{1,4}\)@', '', $samplerequesturi); var_dump($samplerequesturi);

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.60.0040.00816.96
7.2.00.0030.01319.52
7.1.200.0090.00615.97
7.1.100.0040.00717.89
7.1.70.0030.00616.98
7.1.60.0040.02219.33
7.1.50.0120.01216.94
7.1.00.0030.07722.55
7.0.200.0090.00616.52
7.0.140.0070.07322.04
7.0.60.0030.08019.91
7.0.50.0000.04317.88
7.0.40.0130.07720.10
7.0.30.0300.06320.18
7.0.20.0370.06720.25
7.0.10.0300.05020.21
7.0.00.0030.04320.03
5.6.280.0000.07721.14
5.6.210.0170.07320.61
5.6.200.0100.08318.16
5.6.190.0130.08020.69
5.6.180.3070.03320.61
5.6.170.0200.08320.38
5.6.160.0030.04320.62
5.6.150.0100.07718.11
5.6.140.0100.08018.13
5.6.130.0000.05718.11
5.6.120.0300.03321.17
5.6.110.0100.07720.98
5.6.100.0130.07720.98
5.6.90.0030.04021.00
5.6.80.0030.07720.37
5.6.70.0300.03020.49
5.5.350.0370.07020.35
5.5.340.0000.04018.02
5.5.330.0200.07020.21
5.5.320.0330.03320.20
5.5.310.0170.04720.32
5.5.300.0130.08017.97
5.5.290.0030.08317.98
5.5.280.0100.04020.68
5.5.270.0070.04020.79
5.5.260.0100.08020.63
5.5.250.0200.04720.45
5.5.240.0300.04020.18
5.4.450.0270.08019.24
5.4.440.0370.07019.41
5.4.430.0300.04019.57
5.4.420.0270.06319.41
5.4.410.0270.03719.28
5.4.400.0230.04319.09
5.4.390.0230.03318.83
5.4.380.0130.04319.10
5.4.370.0370.06319.13
5.4.360.0300.04719.16
5.4.350.0270.04719.21
5.4.340.0200.07719.09
5.4.320.0230.06719.06
5.4.310.0230.07018.88
5.4.300.0230.07019.07
5.4.290.0300.07019.10
5.4.280.0200.04019.06
5.4.270.0230.03718.79
5.4.260.0200.03319.09
5.4.250.0300.05718.95
5.4.240.0270.07318.88
5.4.230.0230.04719.14
5.4.220.0270.08319.17
5.4.210.0300.05719.07
5.4.200.0230.03719.13
5.4.190.0300.07018.91
5.4.180.0270.05318.91
5.4.170.0270.05019.14
5.4.160.0270.07319.07
5.4.150.0400.06319.07
5.4.140.0300.06016.17
5.4.130.0200.03716.45
5.4.120.0270.06316.27
5.4.110.0300.07016.43
5.4.100.0300.03716.39
5.4.90.0270.08016.46
5.4.80.0300.04016.38
5.4.70.0170.04316.46
5.4.60.0330.06016.36
5.4.50.0270.04016.41
5.4.40.0230.04716.36
5.4.30.0270.05016.45
5.4.20.0330.05316.41
5.4.10.0230.06716.52
5.4.00.0300.03015.73
5.3.290.0370.06014.50
5.3.280.0230.08014.53
5.3.270.0270.05714.55
5.3.260.0230.06014.44
5.3.250.0270.07314.64
5.3.240.0370.06314.47
5.3.230.0270.03314.53
5.3.220.0330.06314.39
5.3.210.0270.03714.65
5.3.200.0300.06014.42
5.3.190.0170.04314.40
5.3.180.0330.03714.51
5.3.170.0270.07014.41
5.3.160.0300.06714.64
5.3.150.0370.06014.54
5.3.140.0200.04314.41
5.3.130.0300.07014.58
5.3.120.0230.06014.45
5.3.110.0300.05714.52
5.3.100.0300.06013.98
5.3.90.0200.04313.96
5.3.80.0270.06713.99
5.3.70.0270.04713.87
5.3.60.0300.06713.93
5.3.50.0330.03713.79
5.3.40.0270.04313.89
5.3.30.0300.03313.95
5.3.20.0300.04713.48
5.3.10.0200.03013.61
5.3.00.0200.04313.68
5.2.170.0270.03311.04
5.2.160.0230.05011.24
5.2.150.0170.05011.02
5.2.140.0330.07011.02
5.2.130.0130.04011.15
5.2.120.0170.03011.19
5.2.110.0200.05311.02
5.2.100.0070.03711.25
5.2.90.0200.02711.02
5.2.80.0230.04011.10
5.2.70.0130.06711.14
5.2.60.0230.05311.02
5.2.50.0170.04311.10
5.2.40.0170.03011.02
5.2.30.0300.05011.02
5.2.20.0170.03311.02
5.2.10.0130.06011.02
5.2.00.0130.03011.02
5.1.60.0200.02011.02
5.1.50.0170.02311.02
5.1.40.0130.03311.02
5.1.30.0200.02711.02
5.1.20.0200.02311.02
5.1.10.0130.02711.02
5.1.00.0200.05011.02
5.0.50.0070.02711.02
5.0.40.0100.02311.02
5.0.30.0100.05711.02
5.0.20.0030.02311.02
5.0.10.0100.03711.02
5.0.00.0230.05311.02
4.4.90.0070.01711.02
4.4.80.0100.01711.02
4.4.70.0030.02011.02
4.4.60.0130.03011.02
4.4.50.0130.02711.02
4.4.40.0070.02711.02
4.4.30.0070.01711.02
4.4.20.0070.01711.02
4.4.10.0200.01011.02
4.4.00.0100.05311.02
4.3.110.0100.01711.02
4.3.100.0130.01311.02
4.3.90.0070.02011.02
4.3.80.0130.03311.02
4.3.70.0100.01711.02
4.3.60.0100.03311.02
4.3.50.0100.02311.02
4.3.40.0130.04711.02
4.3.30.0030.03311.02
4.3.20.0030.03311.02
4.3.10.0030.02011.02
4.3.00.0100.01311.02