3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); ini_set('display_errors', TRUE); print_r(parse_url('/path/?query')); print_r(parse_url('/path')); print_r(parse_url('?query=string')); print_r(parse_url('?query')); print_r(parse_url('query')); print_r(parse_url('/'));

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.10.0080.01515.82
7.3.00.0090.00615.82
7.2.130.0100.00715.97
7.2.120.0090.00915.80
7.2.110.0110.00716.30
7.2.100.0170.00716.27
7.2.90.0110.00716.46
7.2.80.0150.01216.74
7.2.70.0090.01416.13
7.2.60.0070.01115.94
7.2.50.0150.00216.11
7.2.40.0130.00316.12
7.2.30.0120.00816.21
7.2.20.0150.00815.79
7.2.10.0160.01216.05
7.2.00.0100.00717.88
7.1.250.0180.00315.43
7.1.100.0060.00618.21
7.1.70.0040.00417.00
7.1.60.0100.00719.50
7.1.50.0070.01716.75
7.1.00.0100.07022.32
7.0.200.0030.00716.28
7.0.140.0200.04722.12
7.0.60.0070.06320.08
7.0.50.0130.04017.90
7.0.40.0070.09020.23
7.0.30.0400.06720.04
7.0.20.0300.08020.04
7.0.10.0170.06020.21
7.0.00.0100.08720.13
5.6.210.0230.06320.59
5.6.200.0070.05318.19
5.6.190.0100.08020.61
5.6.180.0030.05020.65
5.6.170.0170.04320.50
5.6.160.0100.03320.71
5.6.150.0030.04018.16
5.6.140.0030.08018.17
5.6.130.0070.08018.21
5.6.120.0100.04721.00
5.6.110.0070.06021.11
5.6.100.0070.08721.12
5.6.90.0130.08020.96
5.6.80.0170.05020.40
5.6.70.0330.06020.51
5.5.350.0330.06320.40
5.5.340.0100.07717.93
5.5.330.0070.04020.36
5.5.320.0070.08020.27
5.5.310.0270.06320.13
5.5.300.0030.07017.96
5.5.290.0200.06317.98
5.5.280.0100.04020.77
5.5.270.0030.05720.75
5.5.260.0170.07320.79
5.5.250.0200.06320.70
5.5.240.0170.07320.28
5.4.450.0570.05319.63
5.4.440.0470.06319.27
5.4.430.0330.04719.48
5.4.420.0170.07019.40
5.4.410.0100.05318.80
5.4.400.0270.05718.73
5.4.390.0470.06318.64
5.4.380.0370.06718.58
5.4.370.0330.05318.55
5.4.360.0330.05018.71
5.4.350.0300.07318.60
5.4.340.0370.05718.70
5.4.320.0330.05718.50
5.4.310.0270.06718.44
5.4.300.0370.06718.68
5.4.290.0470.04318.66
5.4.280.0370.05718.55
5.4.270.0270.05718.59
5.4.260.0370.04718.46
5.4.250.0200.06318.73
5.4.240.0270.06018.70
5.4.230.0330.05018.71
5.4.220.0270.05718.60
5.4.210.0270.06318.54
5.4.200.2600.06316.72
5.4.190.0270.06018.69
5.4.180.0300.05718.63
5.4.170.0270.05718.46
5.4.160.0200.06318.69
5.4.150.0170.05718.66
5.4.140.0370.04716.20
5.4.130.0400.06016.06
5.4.120.0300.05316.31
5.4.110.0270.04716.16
5.4.100.0430.05016.16
5.4.90.0300.05016.14
5.4.80.0330.05316.18
5.4.70.0870.07016.18
5.4.60.1370.07316.21
5.4.50.5730.05716.13
5.4.40.1400.04716.19
5.4.30.0330.05016.17
5.4.20.0230.05316.11
5.4.10.0400.04715.98
5.4.00.0270.05315.67
5.3.290.0200.06314.59
5.3.280.0430.04714.57
5.3.270.0330.07714.61
5.3.260.0330.05714.54
5.3.250.1600.05014.65
5.3.240.0400.05314.61
5.3.230.0330.04714.52
5.3.220.1670.04314.54
5.3.210.0330.05314.53
5.3.200.0400.04314.54
5.3.190.0130.05314.46
5.3.180.0270.04714.56
5.3.170.0330.05314.46
5.3.160.0370.04714.55
5.3.150.0300.05014.56
5.3.140.0400.07714.65
5.3.130.0430.07014.60
5.3.120.4930.06714.48
5.3.110.0330.07314.49
5.3.100.0630.06313.98
5.3.90.0470.06314.07
5.3.80.0470.04313.94
5.3.70.0370.05014.00
5.3.60.0400.04713.95
5.3.50.0400.06013.84
5.3.40.0300.05713.88
5.3.30.0300.04713.90
5.3.20.0200.05313.79
5.3.10.0300.05013.57
5.3.00.0230.05313.63
5.2.170.0300.03711.11
5.2.160.0230.04011.13
5.2.150.0270.04011.18
5.2.140.0230.04311.19
5.2.130.0230.04011.14
5.2.120.0200.04711.15
5.2.110.0230.04011.05
5.2.100.0300.04011.09
5.2.90.0330.03011.02
5.2.80.0300.03711.15
5.2.70.0200.04711.08
5.2.60.0230.05311.11
5.2.50.0200.04011.07
5.2.40.0270.04711.14
5.2.30.0230.03310.98
5.2.20.0170.04710.93
5.2.10.0170.04010.93
5.2.00.0230.04710.81
5.1.60.0230.05010.01
5.1.50.0370.02310.02
5.1.40.0200.03310.18
5.1.30.0130.04010.40
5.1.20.0200.03710.43
5.1.10.0100.04310.10
5.1.00.0170.04010.15
5.0.50.0170.0208.73
5.0.40.0130.0408.50
5.0.30.0100.0478.25
5.0.20.0230.0208.39
5.0.10.0170.0278.29
5.0.00.0170.0438.15
4.4.90.0170.0135.90
4.4.80.0070.0235.88
4.4.70.0100.0205.91
4.4.60.0070.0275.86
4.4.50.0100.0235.91
4.4.40.0070.0405.95
4.4.30.0070.0275.81
4.4.20.0100.0235.93
4.4.10.0130.0175.98
4.4.00.0030.0405.89
4.3.110.0070.0235.83
4.3.100.0130.0235.88
4.3.90.0100.0205.79
4.3.80.0170.0235.86
4.3.70.0100.0235.78
4.3.60.0070.0335.87
4.3.50.0100.0275.81
4.3.40.0130.0305.76
4.3.30.0030.0234.56
4.3.20.0030.0234.53
4.3.10.0030.0234.54
4.3.00.0070.0236.61