3v4l.org

run code in 300+ PHP versions simultaneously
<?php $originalParams = [ 'foo' => 'bar', 'faz' => [1,2,3], 'targeting' => [ 'countries' => 'US,GB', 'age_min' => 13, ], 'call_to_action' => [ 'type' => 'LEARN_MORE', 'value' => [ 'link' => 'http://example.com', 'sponsorship' => [ 'image' => 'http://example.com/bar.jpg', ], ], ], ]; $params = explode('&', http_build_query($originalParams, null, '&')); $result = []; foreach ($params as $param) { list($key, $value) = explode('=', $param, 2); $result[urldecode($key)] = urldecode($value); } var_dump($result);

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.40.0110.00418.46
8.3.30.0060.00919.01
8.3.20.0070.00020.13
8.3.10.0060.00321.90
8.3.00.0050.00319.13
8.2.170.0180.00322.96
8.2.160.0070.00722.29
8.2.150.0080.00824.18
8.2.140.0040.01124.66
8.2.130.0050.00326.16
8.2.120.0030.00619.43
8.2.110.0060.00321.00
8.2.100.0000.01118.09
8.2.90.0040.00419.20
8.2.80.0050.00317.97
8.2.70.0030.00617.75
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0040.00418.34
8.2.30.0070.00318.20
8.2.20.0000.00817.69
8.2.10.0040.00418.05
8.2.00.0040.00417.80
8.1.270.0050.00518.69
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0050.00523.92
8.1.230.0070.00317.77
8.1.220.0050.00317.78
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00918.37
8.1.160.0040.00422.02
8.1.150.0040.00418.81
8.1.140.0050.00317.44
8.1.130.0030.00317.75
8.1.120.0040.00417.38
8.1.110.0050.00317.34
8.1.100.0040.00417.34
8.1.90.0070.00017.37
8.1.80.0040.00417.45
8.1.70.0040.00417.45
8.1.60.0030.00617.63
8.1.50.0050.00317.50
8.1.40.0060.00317.52
8.1.30.0080.00017.68
8.1.20.0040.00417.66
8.1.10.0000.00817.52
8.1.00.0030.00517.56
8.0.300.0050.00218.77
8.0.290.0000.00816.75
8.0.280.0000.00718.37
8.0.270.0050.00317.32
8.0.260.0030.00317.26
8.0.250.0030.00316.96
8.0.240.0030.00316.83
8.0.230.0000.00716.98
8.0.220.0000.00716.77
8.0.210.0070.00016.93
8.0.200.0040.00417.04
8.0.190.0040.00416.97
8.0.180.0040.00416.95
8.0.170.0030.00616.97
8.0.160.0030.00316.81
8.0.150.0080.00016.79
8.0.140.0040.00316.85
8.0.130.0000.00613.38
8.0.120.0050.00316.83
8.0.110.0000.00916.87
8.0.100.0040.00416.96
8.0.90.0000.00716.95
8.0.80.0100.00616.84
8.0.70.0040.00416.68
8.0.60.0070.00016.88
8.0.50.0040.00416.95
8.0.30.0110.01317.07
8.0.20.0130.00717.40
8.0.10.0050.00217.07
8.0.00.0090.01216.82
7.4.330.0030.00315.03
7.4.320.0030.00316.42
7.4.300.0060.00016.63
7.4.290.0070.00016.66
7.4.280.0100.00316.50
7.4.270.0030.00316.53
7.4.260.0030.00316.52
7.4.250.0030.00516.58
7.4.240.0030.00316.53
7.4.230.0030.00316.51
7.4.220.0140.00316.68
7.4.210.0040.01016.38
7.4.200.0040.00416.64
7.4.160.0070.01016.63
7.4.150.0130.00717.40
7.4.140.0120.00917.86
7.4.130.0090.00916.39
7.4.120.0060.01116.49
7.4.110.0070.01116.46
7.4.100.0090.00916.56
7.4.90.0130.00316.52
7.4.80.0140.01119.39
7.4.70.0100.00616.40
7.4.60.0030.01316.46
7.4.50.0030.00516.54
7.4.40.0110.00716.60
7.4.30.0160.00016.50
7.4.00.0090.00714.85
7.3.330.0030.00313.18
7.3.320.0000.00513.09
7.3.310.0030.00316.29
7.3.300.0070.00016.18
7.3.290.0090.00716.35
7.3.280.0070.01116.31
7.3.270.0110.00817.40
7.3.260.0090.00916.30
7.3.250.0100.00716.53
7.3.240.0060.01216.41
7.3.230.0140.00416.43
7.3.210.0140.00316.29
7.3.200.0180.00619.39
7.3.190.0080.00816.40
7.3.180.0150.00016.26
7.3.170.0040.01916.37
7.3.160.0070.01016.36
7.3.120.0080.00614.67
7.3.110.0110.00714.50
7.3.100.0030.01014.82
7.3.90.0060.00914.64
7.3.80.0120.00315.10
7.3.70.0000.01514.56
7.3.60.0140.00314.86
7.3.50.0110.00014.58
7.3.40.0080.00814.77
7.3.30.0090.00914.79
7.3.20.0030.00916.64
7.3.10.0090.00416.64
7.3.00.0040.00916.58
7.2.330.0110.00816.61
7.2.320.0120.00616.58
7.2.310.0110.00616.44
7.2.300.0040.01316.60
7.2.290.0140.00316.61
7.2.250.0090.00915.05
7.2.240.0060.01115.04
7.2.230.0070.01015.13
7.2.220.0060.00314.99
7.2.210.0060.00914.90
7.2.200.0000.01615.00
7.2.190.0030.01315.14
7.2.180.0130.00314.88
7.2.170.0060.01014.80
7.2.130.0030.00816.78
7.2.120.0070.00716.89
7.2.110.0000.01216.76
7.2.100.0090.00316.75
7.2.90.0040.01116.96
7.2.80.0000.01317.01
7.2.70.0030.00916.80
7.2.60.0100.00516.99
7.2.50.0040.00816.76
7.2.40.0030.00916.76
7.2.30.0030.00916.80
7.2.20.0000.01217.01
7.2.10.0000.01616.94
7.2.00.0020.01317.93
7.1.330.0040.01115.67
7.1.320.0090.00615.92
7.1.310.0040.01115.98
7.1.300.0070.00715.74
7.1.290.0140.00015.78
7.1.280.0120.00615.60
7.1.270.0100.00315.73
7.1.260.0040.00815.99
7.1.250.0080.00315.55
7.1.200.0060.00315.76
7.1.100.0080.00417.99
7.1.70.0040.00417.09
7.1.60.0040.01919.46
7.1.50.0070.01516.71
7.1.00.0030.07322.32
7.0.200.0040.00416.82
7.0.140.0030.05022.10
7.0.60.0000.04720.03
7.0.50.0030.05717.81
7.0.40.0070.07020.24
7.0.30.0170.05320.33
7.0.20.0270.07020.16
7.0.10.0130.07720.01
7.0.00.0100.05320.10
5.6.280.0070.07020.92
5.6.210.0000.04720.64
5.6.200.0030.06018.14
5.6.190.0200.07720.41
5.6.180.0430.03720.56
5.6.170.0230.06320.48
5.6.160.0070.08320.48
5.6.150.0030.05318.21
5.6.140.0000.06318.16
5.6.130.0070.07718.20
5.6.120.0030.04320.95
5.6.110.0000.06021.12
5.6.100.0000.04720.98
5.6.90.0030.06020.84
5.6.80.0100.07320.39
5.5.350.0430.07320.41
5.5.340.0070.05017.95
5.5.330.0030.08020.07
5.5.320.0000.09320.27
5.5.310.0430.06020.17
5.5.300.0100.07017.98
5.5.290.0030.04017.96
5.5.280.0100.05720.77
5.5.270.0100.08320.75
5.5.260.0100.06020.98
5.5.250.0130.07320.61
5.5.240.0070.07320.24
5.4.450.0570.06019.32
5.4.440.0170.05719.56
5.4.430.0070.06719.42
5.4.420.0170.05019.31
5.4.410.0100.05319.21
5.4.400.0070.05719.23
5.4.390.0200.05318.75
5.4.380.0200.07018.60
5.4.370.0300.08018.71
5.4.360.0170.05718.50
5.4.350.0200.07718.67
5.4.340.0200.07318.61
5.4.320.0300.06018.55
5.4.310.0100.06718.71
5.4.300.0270.05718.68
5.4.290.0200.05018.72
5.4.280.0130.05718.76
5.4.270.0200.06018.67
5.4.260.0130.06318.64
5.4.250.0200.05318.65
5.4.240.0230.05318.79
5.4.230.0170.05718.65
5.4.220.0130.05718.72
5.4.210.0270.05718.58
5.4.200.0200.05716.74
5.4.190.0170.05018.73
5.4.180.0170.05318.48
5.4.170.0130.05718.54
5.4.160.0270.05018.56
5.4.150.0130.05718.50
5.4.140.0270.04016.24
5.4.130.0200.04716.18
5.4.120.0200.05316.27
5.4.110.0200.05016.23
5.4.100.0200.05316.23
5.4.90.0270.05016.14
5.4.80.0200.05016.05
5.4.70.0170.05716.07
5.4.60.0300.03716.04
5.4.50.0130.05316.14
5.4.40.0170.05716.27
5.4.30.0230.04316.29
5.4.20.0200.04716.14
5.4.10.0230.04716.13
5.4.00.0170.06715.68
5.3.290.0200.05014.56
5.3.280.0170.05014.57
5.3.270.0130.05714.59
5.3.260.0270.04314.66
5.3.250.0170.05314.52
5.3.240.0270.04714.54
5.3.230.0270.05014.53
5.3.220.0270.04014.55
5.3.210.0170.05714.53
5.3.200.0100.06014.66
5.3.190.0130.05714.48
5.3.180.0070.05714.54
5.3.170.0100.05314.56
5.3.160.1300.04714.59
5.3.150.0700.06014.46
5.3.140.0900.04714.52
5.3.130.0830.04714.60
5.3.120.0730.05714.53
5.3.110.0870.05014.53
5.3.100.0730.06014.14
5.3.90.0900.04014.03
5.3.80.0830.05313.98
5.3.70.0830.04713.94
5.3.60.1130.05013.94
5.3.50.0770.06014.02
5.3.40.0830.05013.93
5.3.30.1030.04013.84
5.3.20.0900.05313.64
5.3.10.0870.05013.57
5.3.00.0970.04713.75
5.2.170.0730.04011.11
5.2.160.0700.03711.22
5.2.150.0870.04711.05
5.2.140.0770.04011.11
5.2.130.0900.06311.16
5.2.120.0830.03711.25
5.2.110.0770.03711.05
5.2.100.0800.04311.15
5.2.90.0800.03311.09
5.2.80.0930.03711.16
5.2.70.0800.03711.08
5.2.60.0730.04311.05
5.2.50.0770.05011.00
5.2.40.0600.04010.95
5.2.30.0600.04310.93
5.2.20.0800.04011.11
5.2.10.0630.03710.89
5.2.00.0670.04010.87
5.1.60.0670.04710.00
5.1.50.0530.03710.09
5.1.40.0630.04310.07
5.1.30.0570.04310.32
5.1.20.0670.05010.32
5.1.10.0630.03310.05
5.1.00.0630.02710.13
5.0.50.0300.0278.67
5.0.40.0330.0278.48
5.0.30.0270.0508.27
5.0.20.0270.0308.29
5.0.10.0400.0208.29
5.0.00.0300.0438.34
4.4.90.0300.0205.83
4.4.80.0330.0205.91
4.4.70.0270.0235.85
4.4.60.0270.0205.86
4.4.50.0270.0205.89
4.4.40.0230.0375.91
4.4.30.0270.0205.88
4.4.20.0300.0205.97
4.4.10.0300.0205.95
4.4.00.0270.0375.91
4.3.110.0330.0205.75
4.3.100.0300.0235.75
4.3.90.0330.0175.84
4.3.80.0230.0375.87
4.3.70.0270.0235.81
4.3.60.0270.0205.86
4.3.50.0270.0235.81
4.3.40.0370.0405.76
4.3.30.0130.0234.84
4.3.20.0130.0234.84
4.3.10.0100.0274.84
4.3.00.0130.0206.68

preferences:
45.58 ms | 400 KiB | 5 Q