3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res = "month1%5B%5D=4&sap=721&name=uname&month1%5B%5D=10000.00&month2%5B%5D=10000.00&month3%5B%5D=0.00&month4%5B%5D=&month5%5B%5D=&month6%5B%5D=&month1%5B%5D=15000&month2%5B%5D=0.00&month3%5B%5D=0.00&month4%5B%5D=&month5%5B%5D=&month6%5B%5D=&month1%5B%5D=50&month2%5B%5D=50&month3%5B%5D=50&month4%5B%5D=&month5%5B%5D=&month6%5B%5D=&month1%5B%5D=15000&month2%5B%5D=10000&month3%5B%5D=0&month4%5B%5D=0&month5%5B%5D=0&month6%5B%5D=0&sap_data%5B%5D=&sap_data%5B%5D=&sap_data%5B%5D=&sap_data%5B%5D="; print_r(urldecode($res)); $output= array(); parse_str($res, $output); print_r($output); $ex = Array ( [0] => 10000.00 [1] => 1 [2] => 50 [3] => 15000 )** Array ( [0] => 10000.00 [1] => 1 [2] => 50 [3] => 10000 ) Array ( [0] => 0.00 [1] => 1 [2] => 50 [3] => 0 ) Array ( [0] => [1] => [2] => [3] => 0 ) Array ( [0] => [1] => [2] => [3] => 0 ) Array ( [0] => [1] => [2] => [3] => 0 ) Array ( [0] => [1] => [2] => [3] => ); print_r($ex);

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)
5.4.270.0100.05718.99
5.4.260.0100.05018.80
5.4.250.0070.07718.65
5.4.240.0000.08719.09
5.4.230.0070.05318.80
5.4.220.0170.05318.95
5.4.210.0070.06318.73
5.4.200.0100.05019.00
5.4.190.0100.06018.64
5.4.180.0170.07318.90
5.4.170.0070.08018.98
5.4.160.0100.07718.79
5.4.150.0270.06018.64
5.4.140.0270.04716.48
5.4.130.0200.05716.52
5.4.120.0200.05316.53
5.4.110.0170.06016.57
5.4.100.0100.05316.55
5.4.90.0170.06316.39
5.4.80.0070.05716.41
5.4.70.0100.06316.51
5.4.60.0170.07016.40
5.4.50.0100.06016.54
5.4.40.0100.05016.51
5.4.30.0070.06316.36
5.4.20.0130.04716.46
5.4.10.0000.05716.63
5.4.00.0070.06715.80
5.3.280.0130.06014.63
5.3.270.0070.05314.47
5.3.260.0070.06314.62
5.3.250.0170.07314.64
5.3.240.0070.05314.46
5.3.230.0100.05714.43
5.3.220.0000.05714.43
5.3.210.0100.07014.48
5.3.200.0070.06714.58
5.3.190.0100.05314.57
5.3.180.0200.04714.45
5.3.170.0100.07314.61
5.3.160.0130.06314.66
5.3.150.0130.06314.42
5.3.140.0170.06714.39
5.3.130.0070.05314.61
5.3.120.0170.04714.55
5.3.110.0130.07014.70
5.3.100.0200.06714.08
5.3.90.0100.06714.11
5.3.80.0130.05314.04
5.3.70.0170.06013.94
5.3.60.0070.06713.70
5.3.50.0130.04713.81
5.3.40.0130.05713.97
5.3.30.0070.05013.94
5.3.20.0100.06013.79
5.3.10.0070.05313.59
5.3.00.0070.08013.41
5.2.170.0000.06011.06
5.2.160.0130.04711.06
5.2.150.0170.04711.07
5.2.140.0100.05311.02
5.2.130.0030.05011.12
5.2.120.0100.05311.11
5.2.110.0170.05011.11
5.2.100.0000.04311.19
5.2.90.0030.04011.19
5.2.80.0100.05311.09
5.2.70.0000.05011.02
5.2.60.0030.05011.07
5.2.50.0130.05711.02
5.2.40.0100.05310.89
5.2.30.0000.06710.73
5.2.20.0130.03710.97
5.2.10.0100.05311.03
5.2.00.0030.04710.93
5.1.60.0030.04010.06
5.1.50.0030.03310.05
5.1.40.0000.0409.90
5.1.30.0130.04310.25
5.1.20.0070.03310.43
5.1.10.0030.05010.12
5.1.00.0130.04010.24
5.0.50.0030.0308.44
5.0.40.0100.0278.46
5.0.30.0070.0438.18
5.0.20.0000.0408.18
5.0.10.0030.0378.16
5.0.00.0000.0477.99
4.4.90.0030.0207.01
4.4.80.0070.0237.01
4.4.70.0000.0277.01
4.4.60.0100.0237.01
4.4.50.0100.0207.01
4.4.40.0100.0377.01
4.4.30.0030.0337.01
4.4.20.0000.0237.01
4.4.10.0030.0277.01
4.4.00.0000.0477.01
4.3.110.0000.0237.01
4.3.100.0100.0207.01
4.3.90.0000.0337.01
4.3.80.0000.0377.01
4.3.70.0030.0207.01
4.3.60.0000.0237.01
4.3.50.0030.0237.01
4.3.40.0070.0337.01
4.3.30.0030.0207.01
4.3.20.0030.0307.01
4.3.10.0000.0307.01
4.3.00.0070.0277.23

preferences:
144.66 ms | 1394 KiB | 7 Q