3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query = "my=apples&are=green+and+red"; foreach (explode('&', $query) as $chunk) { $param = explode("=", $chunk); if ($param) { printf("Value for parameter \"%s\" is \"%s\"<br/>\n", urldecode($param[0]), urldecode($param[1])); } } ?>

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.55
8.3.30.0070.01118.96
8.3.20.0070.00020.24
8.3.10.0000.00822.11
8.3.00.0050.00222.34
8.2.170.0140.00022.96
8.2.160.0100.00719.09
8.2.150.0080.00024.18
8.2.140.0100.00024.66
8.2.130.0080.00026.16
8.2.120.0090.00317.75
8.2.110.0060.00320.53
8.2.100.0070.00417.78
8.2.90.0040.00419.22
8.2.80.0000.00918.04
8.2.70.0080.00317.50
8.2.60.0060.00318.04
8.2.50.0000.00818.07
8.2.40.0000.00918.22
8.2.30.0050.00218.00
8.2.20.0050.00217.72
8.2.10.0000.00817.55
8.2.00.0030.00617.64
8.1.270.0130.00722.07
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00922.14
8.1.230.0110.00020.87
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0040.00417.22
8.1.190.0040.00417.51
8.1.180.0050.00318.45
8.1.170.0000.00818.39
8.1.160.0000.00722.10
8.1.150.0040.00418.70
8.1.140.0000.00717.36
8.1.130.0060.00017.82
8.1.120.0030.00317.36
8.1.110.0040.00417.35
8.1.100.0040.00417.42
8.1.90.0050.00417.42
8.1.80.0080.00317.37
8.1.70.0080.00217.41
8.1.60.0060.00517.57
8.1.50.0080.00417.49
8.1.40.0060.00317.44
8.1.30.0050.00517.55
8.1.20.0080.00217.56
8.1.10.0040.00617.47
8.1.00.0060.00517.35
8.0.300.0040.00418.77
8.0.290.0060.00317.04
8.0.280.0000.00718.38
8.0.270.0030.00317.31
8.0.260.0030.00316.71
8.0.250.0030.00316.87
8.0.240.0070.00516.90
8.0.230.0020.00616.87
8.0.220.0070.00316.76
8.0.210.0080.00216.87
8.0.200.0060.00416.91
8.0.190.0020.00916.86
8.0.180.0080.00416.80
8.0.170.0060.00616.93
8.0.160.0050.00716.89
8.0.150.0050.00416.83
8.0.140.0060.00416.81
8.0.130.0040.00415.10
8.0.120.0040.00616.82
8.0.110.0070.00316.91
8.0.100.0050.00416.75
8.0.90.0080.00216.81
8.0.80.0100.00316.91
8.0.70.0090.00216.72
8.0.60.0070.00316.84
8.0.50.0060.00416.77
8.0.30.0090.00716.97
8.0.20.0120.00417.17
8.0.10.0070.00816.88
8.0.00.0090.00716.86
7.4.330.0000.00515.00
7.4.320.0070.00016.48
7.4.300.0060.00616.53
7.4.290.0070.00416.49
7.4.280.0060.00616.45
7.4.270.0080.00316.49
7.4.260.0110.00216.55
7.4.250.0060.00616.49
7.4.240.0060.00316.47
7.4.230.0070.00316.55
7.4.220.0090.00416.56
7.4.210.0080.00616.53
7.4.200.0030.00616.42
7.4.190.0050.00416.48
7.4.180.0020.00716.33
7.4.160.0060.00716.42
7.4.150.0100.00316.73
7.4.140.0120.00416.98
7.4.130.0110.00616.41
7.4.120.0070.00816.43
7.4.110.0100.00616.42
7.4.100.0100.00616.53
7.4.90.0080.00916.48
7.4.80.0100.00417.17
7.4.70.0080.00816.42
7.4.60.0070.00916.29
7.4.50.0070.00916.29
7.4.40.0100.00616.31
7.4.30.0120.00516.36
7.4.20.0080.00816.26
7.4.10.0070.01115.99
7.4.00.0100.00715.86
7.3.330.0050.00514.56
7.3.320.0080.00314.72
7.3.310.0050.00516.29
7.3.300.0070.00216.20
7.3.290.0090.00416.22
7.3.280.0080.00716.19
7.3.270.0100.00216.63
7.3.260.0080.00716.27
7.3.250.0090.00716.28
7.3.240.0090.00616.25
7.3.230.0070.00816.24
7.3.220.0090.00416.15
7.3.210.0110.00716.32
7.3.200.0080.00917.05
7.3.190.0090.00616.21
7.3.180.0120.00716.19
7.3.170.0060.01016.15
7.3.160.0090.00716.22
7.3.150.0090.00916.17
7.3.140.0110.00516.13
7.3.130.0090.01015.90
7.3.120.0120.00715.66
7.3.110.0110.00815.61
7.3.100.0110.00915.62
7.3.90.0120.00715.78
7.3.80.0100.00915.77
7.3.70.0100.00815.73
7.3.60.0130.00515.87
7.3.50.0110.00815.91
7.3.40.0120.00715.78
7.3.30.0110.00815.81
7.3.20.0110.00816.45
7.3.10.0150.00716.40
7.3.00.0140.00716.42
7.2.340.0120.00916.47
7.2.330.0140.00916.54
7.2.320.0140.00616.55
7.2.310.0130.00916.34
7.2.300.0160.00816.47
7.2.290.0130.00816.48
7.2.280.0130.01016.50
7.2.270.0120.00916.40
7.2.260.0120.01316.25
7.2.250.0110.01015.99
7.2.240.0130.00915.98
7.2.230.0110.01015.99
7.2.220.0100.01115.97
7.2.210.0130.00915.90
7.2.200.0140.00916.15
7.2.190.0170.00716.01
7.2.180.0130.01015.98
7.2.170.0130.00916.03
7.2.160.0170.00516.01
7.2.150.0160.00716.72
7.2.140.0170.00716.68
7.2.130.0150.00816.74
7.2.120.0150.00816.72
7.2.110.0140.00816.72
7.2.100.0150.00816.71
7.2.90.0150.00816.66
7.2.80.0150.00916.82
7.2.70.0130.00816.73
7.2.60.0160.00916.67
7.2.50.0140.01016.72
7.2.40.0170.01016.76
7.2.30.0130.01116.68
7.2.20.0170.00716.70
7.2.10.0170.00716.79
7.2.00.0100.00917.10
7.1.330.0120.00915.58
7.1.320.0130.00915.64
7.1.310.0100.01115.64
7.1.300.0140.00715.65
7.1.290.0150.00715.59
7.1.280.0140.00815.57
7.1.270.0120.00815.60
7.1.260.0170.00715.52
7.1.250.0130.00815.50
7.1.240.0130.00915.54
7.1.230.0150.00615.41
7.1.220.0150.00815.61
7.1.210.0160.00715.64
7.1.200.0110.01115.62
7.1.190.0280.00715.61
7.1.180.0140.00915.54
7.1.170.0150.00715.48
7.1.160.0170.00715.57
7.1.150.0190.00515.58
7.1.140.0170.00715.49
7.1.130.0170.00715.54
7.1.120.0240.00815.56
7.1.110.0130.01115.53
7.1.100.0120.00915.92
7.1.90.0160.00715.55
7.1.80.0140.00915.61
7.1.70.0150.00715.80
7.1.60.0150.01216.27
7.1.50.0120.00815.74
7.1.40.0180.00515.64
7.1.30.0200.00815.60
7.1.20.0150.00715.50
7.1.10.0190.00515.50
7.1.00.0130.01516.66
7.0.330.0160.00615.17
7.0.320.0160.00515.16
7.0.310.0190.00615.07
7.0.300.0160.00715.17
7.0.290.0140.00615.19
7.0.280.0150.00915.04
7.0.270.0160.00515.13
7.0.260.0130.01015.22
7.0.250.0150.01015.28
7.0.240.0140.00715.26
7.0.230.0160.00615.28
7.0.220.0130.01015.20
7.0.210.0130.01215.23
7.0.200.0120.00815.45
7.0.190.0180.00515.27
7.0.180.0150.00815.24
7.0.170.0150.01015.21
7.0.160.0230.00615.15
7.0.150.0120.00815.13
7.0.140.0140.01916.33
7.0.130.0150.00715.17
7.0.120.0170.00715.21
7.0.110.0170.00715.11
7.0.100.0210.00715.18
7.0.90.0180.00815.22
7.0.80.0150.00815.18
7.0.70.0120.00915.16
7.0.60.0100.01816.01
7.0.50.0120.01215.55
7.0.40.0130.01315.70
7.0.30.0180.00915.66
7.0.20.0150.01615.67
7.0.10.0180.01815.68
7.0.00.0140.01715.65
5.6.400.0140.00915.50
5.6.390.0160.00715.51
5.6.380.0090.01315.47
5.6.370.0110.01315.47
5.6.360.0120.00915.63
5.6.350.0130.00915.59
5.6.340.0130.00915.62
5.6.330.0170.00715.52
5.6.320.0150.01015.54
5.6.310.0180.00615.55
5.6.300.0150.00815.59
5.6.290.0160.00815.48
5.6.280.0130.02016.42
5.6.270.0160.00715.61
5.6.260.0160.00715.56
5.6.250.0120.01115.66
5.6.240.0160.00515.57
5.6.230.0140.01015.58
5.6.220.0080.01215.58
5.6.210.0140.01816.40
5.6.200.0140.01715.98
5.6.190.0140.02016.44
5.6.180.0160.01816.43
5.6.170.0180.01616.48
5.6.160.0120.01316.37
5.6.150.0090.02016.12
5.6.140.0110.01216.06
5.6.130.0130.02115.92
5.6.120.0150.01716.50
5.6.110.0130.01916.51
5.6.100.0120.01916.46
5.6.90.0130.02016.44
5.6.80.0130.01316.28
5.6.70.0110.01115.56
5.6.60.0100.00915.46
5.6.50.0110.00915.44
5.6.40.0120.00815.48
5.6.30.0130.00915.48
5.6.20.0150.00315.47
5.6.10.0160.00615.53
5.6.00.0170.01315.49
5.5.380.0120.01015.47
5.5.370.0180.00515.58
5.5.360.0160.00615.34
5.5.350.0160.00916.27
5.5.340.0100.01815.89
5.5.330.0120.01316.31
5.5.320.0110.01616.38
5.5.310.0170.01316.31
5.5.300.0100.02215.90
5.5.290.0130.01915.78
5.5.280.0130.01516.30
5.5.270.0130.02116.27
5.5.260.0130.02016.34
5.5.250.0150.01816.31
5.5.240.0110.01716.24
5.5.230.0150.00715.50
5.5.220.0150.00715.29
5.5.210.0160.00515.48
5.5.200.0130.01015.43
5.5.190.0150.01015.35
5.5.180.0170.00615.41
5.5.170.0160.00715.40
5.5.160.0150.01415.40
5.5.150.0140.00715.35
5.5.140.0160.00615.43
5.5.130.0130.00915.24
5.5.120.0140.00915.33
5.5.110.0110.01015.33
5.5.100.0200.00715.50
5.5.90.0120.00915.46
5.5.80.0180.01515.44
5.5.70.0150.00915.39
5.5.60.0140.00715.40
5.5.50.0100.01315.39
5.5.40.0120.00915.43
5.5.30.0140.00715.38
5.5.20.0140.00915.27
5.5.10.0130.00815.28
5.5.00.0150.00715.31
5.4.450.0170.01413.64
5.4.440.0270.01113.64
5.4.430.0190.01213.64
5.4.420.0220.01413.66
5.4.410.0240.01513.68
5.4.400.0260.01313.54
5.4.390.0260.01513.55
5.4.380.0140.01213.44
5.4.370.0150.01213.50
5.4.360.0170.01313.52
5.4.350.0100.01212.32
5.4.340.0100.01312.36
5.4.330.0150.00412.46
5.4.320.0130.01112.46
5.4.310.0130.01312.45
5.4.300.0110.01212.48
5.4.290.0130.01112.50
5.4.280.0140.01012.50
5.4.270.0100.01212.49
5.4.260.0110.01513.50
5.4.250.0150.01313.54
5.4.240.0140.01813.50
5.4.230.0110.02013.43
5.4.220.0120.01413.43
5.4.210.0160.01413.53
5.4.200.0140.01313.43
5.4.190.0130.01113.41
5.4.180.0080.02113.42
5.4.170.0100.01513.48
5.4.160.0100.01413.51
5.4.150.0120.01513.47
5.4.140.0090.01513.12
5.4.130.0130.01413.06
5.4.120.0080.01513.11
5.4.110.0130.01213.16
5.4.100.0110.01413.13
5.4.90.0130.01213.16
5.4.80.0110.01213.12
5.4.70.0100.01313.13
5.4.60.0110.01413.21
5.4.50.0100.01313.12
5.4.40.0110.01513.19
5.4.30.0090.01413.23
5.4.20.0130.01113.17
5.4.10.0100.01513.19
5.4.00.0090.01512.96
5.3.290.0130.01412.90
5.3.280.0090.01713.08
5.3.270.0140.01113.09
5.3.260.0110.01413.17
5.3.250.0090.01713.14
5.3.240.0130.01413.06
5.3.230.0110.01413.06
5.3.220.0130.01413.02
5.3.210.0090.01913.01
5.3.200.0130.01513.02
5.3.190.0130.01113.11
5.3.180.0100.01613.18
5.3.170.0120.01613.18
5.3.160.0110.01513.21
5.3.150.0110.01713.23
5.3.140.0110.01513.11
5.3.130.0120.01413.08
5.3.120.0110.01413.10
5.3.110.0120.01313.09
5.3.100.0100.01412.99
5.3.90.0130.01313.05
5.3.80.0090.01612.90
5.3.70.0080.01612.87
5.3.60.0110.01313.17
5.3.50.0100.01612.95
5.3.40.0120.01412.88
5.3.30.0150.01212.99
5.3.20.0120.01512.89
5.3.10.0130.01612.86
5.3.00.0120.01612.75

preferences:
66.39 ms | 400 KiB | 5 Q