3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "txn_status=0|txn_msg=success|txn_err_msg=NA|clnt_txn_ref=969239|tpsl_bank_cd=470|tpsl_txn_id=192630337|txn_amt=1.00|clnt_rqst_meta={itc:NIC~TXN0001~122333~rt14154~8 mar 2014~Payment~forpayment}{custname:test}|tpsl_txn_time=26-12-2015 15:56:20|tpsl_rfnd_id=NA|bal_amt=NA|rqst_token=hdfs-df-jkfhskjfhsjkd|hash=jhdsfs54367jhf"; $arr = explode('|',$string); $final_array = array_map(function($v){ $a = explode("=",$v); return array($a[0] => $a[1]);},$arr); print_r($final_array);

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.60.0060.00916.75
8.3.50.0060.01221.26
8.3.40.0140.00018.85
8.3.30.0040.01118.71
8.3.20.0070.00020.13
8.3.10.0000.00822.02
8.3.00.0000.00823.58
8.2.180.0140.00716.75
8.2.170.0060.00922.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0120.00018.03
8.2.120.0040.00426.35
8.2.110.0070.00320.99
8.2.100.0080.00417.84
8.2.90.0000.00818.03
8.2.80.0000.00818.16
8.2.70.0030.00517.63
8.2.60.0050.00317.63
8.2.50.0060.00317.75
8.2.40.0040.00417.75
8.2.30.0040.00417.74
8.2.20.0070.00017.78
8.2.10.0000.00818.13
8.2.00.0040.00418.18
8.1.280.0120.00625.92
8.1.270.0030.01323.79
8.1.260.0040.00428.09
8.1.250.0030.00528.09
8.1.240.0080.00023.89
8.1.230.0120.00020.84
8.1.220.0030.00517.75
8.1.210.0030.00518.77
8.1.200.0050.00317.48
8.1.190.0030.00517.25
8.1.180.0000.00818.10
8.1.170.0060.00318.60
8.1.160.0070.00018.77
8.1.150.0040.00418.84
8.1.140.0050.00319.59
8.1.130.0070.00017.71
8.1.120.0000.00717.40
8.1.110.0000.00817.42
8.1.100.0030.00317.45
8.1.90.0000.00817.47
8.1.80.0080.00017.52
8.1.70.0030.00317.45
8.1.60.0020.00517.51
8.1.50.0110.00017.48
8.1.40.0050.00317.36
8.1.30.0000.00817.63
8.1.20.0000.00717.64
8.1.10.0000.00717.52
8.1.00.0000.00717.52
8.0.300.0070.00019.91
8.0.290.0040.00416.58
8.0.280.0040.00417.87
8.0.270.0030.00317.86
8.0.260.0060.00017.24
8.0.250.0080.00016.96
8.0.240.0030.00316.77
8.0.230.0080.00016.91
8.0.220.0040.00416.82
8.0.210.0000.00716.83
8.0.200.0030.00316.99
8.0.190.0050.00316.86
8.0.180.0000.00716.88
8.0.170.0080.00016.83
8.0.160.0050.00316.88
8.0.150.0000.00716.91
8.0.140.0030.00416.86
8.0.130.0000.00513.27
8.0.120.0080.00016.84
8.0.110.0040.00416.81
8.0.100.0040.00416.94
8.0.90.0030.00516.79
8.0.80.0130.01016.95
8.0.70.0040.00416.96
8.0.60.0070.00016.92
8.0.50.0030.00516.90
8.0.30.0160.00517.14
8.0.20.0120.00617.40
8.0.10.0040.00417.04
8.0.00.0100.00716.72
7.4.330.0060.00016.67
7.4.320.0030.00316.61
7.4.300.0000.00716.65
7.4.290.0040.00416.63
7.4.280.0060.00316.63
7.4.270.0030.00316.43
7.4.260.0070.00016.63
7.4.250.0070.00016.43
7.4.240.0050.00316.54
7.4.230.0000.00716.58
7.4.220.0070.01316.70
7.4.210.0000.01416.58
7.4.200.0040.00416.41
7.4.160.0090.00616.37
7.4.150.0130.00317.40
7.4.140.0080.01417.86
7.4.130.0070.01016.54
7.4.120.0040.01416.43
7.4.110.0110.00716.51
7.4.100.0150.00316.63
7.4.90.0170.00016.64
7.4.80.0070.01319.39
7.4.70.0040.01616.51
7.4.60.0090.01216.45
7.4.50.0070.00716.45
7.4.40.0040.01316.64
7.4.30.0100.00716.52
7.4.00.0110.00714.82
7.3.330.0060.00013.12
7.3.320.0000.00513.29
7.3.310.0030.00316.21
7.3.300.0000.00716.18
7.3.290.0050.01416.23
7.3.280.0090.01116.26
7.3.270.0100.00717.40
7.3.260.0180.00016.50
7.3.250.0110.00616.39
7.3.240.0050.01416.61
7.3.230.0100.00716.39
7.3.210.0100.00716.33
7.3.200.0030.01519.39
7.3.190.0060.01216.29
7.3.180.0110.00616.43
7.3.170.0060.01716.46
7.3.160.0100.01316.43
7.3.10.0030.01016.52
7.3.00.0060.00916.52
7.2.330.0040.01316.60
7.2.320.0080.00816.82
7.2.310.0090.00916.52
7.2.300.0110.01116.44
7.2.290.0100.00716.70
7.2.130.0060.00916.79
7.2.120.0140.00016.65
7.2.110.0040.01116.40
7.2.100.0070.00716.80
7.2.90.0080.00816.68
7.2.80.0080.00316.86
7.2.70.0040.00716.68
7.2.60.0080.00316.78
7.2.50.0070.00316.75
7.2.40.0080.00316.67
7.2.30.0080.00316.97
7.2.20.0060.00616.56
7.2.10.0030.00616.60
7.2.00.0090.00618.18
7.1.250.0060.00615.42
7.1.200.0090.00315.74
7.1.100.0060.00618.10
7.1.70.0040.00417.22
7.1.60.0110.01419.30
7.1.50.0090.00617.04
7.1.00.0000.07322.51
7.0.200.0000.00916.85
7.0.60.0200.06321.84
7.0.50.0070.08017.84
7.0.40.0070.04720.02
7.0.30.0200.03720.17
7.0.20.0330.03720.30
7.0.10.0070.05720.24
7.0.00.0030.04720.33
5.6.280.0070.03020.96
5.6.210.0100.04720.48
5.6.200.0170.02718.19
5.6.190.0100.04020.50
5.6.180.0530.07320.33
5.6.170.0300.08320.47
5.6.160.0100.08020.52
5.6.150.0030.05018.18
5.6.140.0100.07018.16
5.6.130.0100.05018.15
5.6.120.0070.05020.96
5.6.110.0070.08021.14
5.6.100.0100.08021.01
5.6.90.0130.03320.96
5.6.80.0030.07020.49
5.5.350.0200.04720.43
5.5.340.0000.05317.98
5.5.330.0030.08720.46
5.5.320.0230.05720.35
5.5.310.0200.03320.28
5.5.300.0100.06317.97
5.5.290.0100.04318.07
5.5.280.0070.04020.66
5.5.270.0070.03720.76
5.5.260.0130.08020.89
5.5.250.0100.08720.50
5.5.240.0170.07720.36

preferences:
29.58 ms | 401 KiB | 5 Q