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"; $final_array = call_user_function_array('array_merge',array_map(function($v){ $a = explode("=",$v); return array($a[0] => $a[1]);},explode('|',$string))); 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.0100.00716.63
8.3.50.0150.00721.10
8.3.40.0070.00718.85
8.3.30.0110.00418.67
8.3.20.0040.00420.16
8.3.10.0040.00421.77
8.3.00.0080.00023.67
8.2.180.0120.00916.63
8.2.170.0140.00022.96
8.2.160.0100.00720.43
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00919.66
8.2.120.0040.00426.35
8.2.110.0030.00621.11
8.2.100.0110.00417.91
8.2.90.0000.00817.97
8.2.80.0030.00617.97
8.2.70.0000.00817.63
8.2.60.0040.00417.63
8.2.50.0040.00417.63
8.2.40.0080.00017.62
8.2.30.0070.00017.63
8.2.20.0020.00517.58
8.2.10.0000.00818.14
8.2.00.0070.00017.95
8.1.280.0070.01025.92
8.1.270.0040.01123.96
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0070.00523.86
8.1.230.0090.00320.97
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0000.00817.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0000.00817.62
8.1.160.0070.00018.85
8.1.150.0040.00418.84
8.1.140.0030.00519.57
8.1.130.0030.00317.59
8.1.120.0070.00017.52
8.1.110.0080.00017.30
8.1.100.0040.00417.46
8.1.90.0000.00817.45
8.1.80.0000.00717.40
8.1.70.0000.00717.42
8.1.60.0000.00917.47
8.1.50.0040.00817.41
8.1.40.0050.00317.54
8.1.30.0000.00817.67
8.1.20.0000.00717.68
8.1.10.0000.00817.66
8.1.00.0050.00217.53
8.0.300.0000.00719.75
8.0.290.0040.00416.75
8.0.280.0090.00018.06
8.0.270.0000.00718.11
8.0.260.0000.00617.11
8.0.250.0040.00716.84
8.0.240.0000.00716.87
8.0.230.0000.00716.97
8.0.220.0040.00416.79
8.0.210.0070.00016.89
8.0.200.0060.00016.89
8.0.190.0000.00816.86
8.0.180.0080.00016.97
8.0.170.0000.00816.92
8.0.160.0040.00416.95
8.0.150.0040.00416.86
8.0.140.0040.00416.77
8.0.130.0000.00613.35
8.0.120.0040.00416.87
8.0.110.0040.00416.98
8.0.100.0050.00216.80
8.0.90.0040.00416.79
8.0.80.0100.01316.93
8.0.70.0070.00016.77
8.0.60.0070.00016.91
8.0.50.0040.00416.95
8.0.30.0110.00817.01
8.0.20.0110.00717.40
8.0.10.0020.00516.88
8.0.00.0080.01016.87
7.4.330.0030.00316.69
7.4.320.0030.00316.59
7.4.300.0070.00016.51
7.4.290.0030.00316.61
7.4.280.0060.00316.61
7.4.270.0030.00316.57
7.4.260.0000.00716.63
7.4.250.0070.00016.48
7.4.240.0030.00516.56
7.4.230.0070.00016.36
7.4.220.0190.00316.46
7.4.210.0060.00916.50
7.4.200.0070.00016.64
7.4.160.0130.00316.27
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0090.01416.59
7.4.120.0080.00916.49
7.4.110.0110.00616.55
7.4.100.0090.00916.52
7.4.90.0060.01116.77
7.4.80.0090.01019.39
7.4.70.0100.00716.67
7.4.60.0190.00416.50
7.4.50.0030.01316.37
7.4.40.0080.00816.62
7.4.30.0120.00816.39
7.4.00.0100.00615.08
7.3.330.0020.00213.28
7.3.320.0030.00313.23
7.3.310.0040.00416.17
7.3.300.0030.00316.18
7.3.290.0070.00916.35
7.3.280.0080.00916.31
7.3.270.0100.00717.40
7.3.260.0100.00716.54
7.3.240.0070.01316.53
7.3.230.0030.01316.39
7.3.210.0060.00916.45
7.3.200.0030.01419.39
7.3.190.0100.00716.39
7.3.180.0060.01016.54
7.3.170.0110.00616.48
7.3.160.0110.00616.31
7.3.120.0100.01014.93
7.3.110.0040.01414.75
7.3.100.0040.01115.11
7.3.90.0110.00314.98
7.3.80.0030.01414.68
7.3.70.0040.00414.81
7.3.60.0030.01314.85
7.3.50.0060.00614.78
7.3.40.0040.00414.60
7.3.30.0040.01114.81
7.3.20.0000.01116.68
7.3.10.0040.01116.52
7.3.00.0070.00716.56
7.2.330.0070.01416.32
7.2.320.0060.01316.53
7.2.310.0090.00916.52
7.2.300.0180.00316.32
7.2.290.0060.01316.52
7.2.250.0070.01115.01
7.2.240.0030.01315.09
7.2.230.0060.00615.05
7.2.220.0090.00314.67
7.2.210.0070.00714.87
7.2.200.0030.00614.86
7.2.190.0120.00314.61
7.2.180.0030.00614.77
7.2.170.0040.01114.95
7.2.60.0070.00716.38
7.2.00.0060.00619.18
7.1.330.0040.01115.51
7.1.320.0000.01115.58
7.1.310.0100.00715.77
7.1.300.0080.00815.58
7.1.290.0060.00615.59
7.1.280.0030.00915.63
7.1.270.0000.01215.53
7.1.260.0080.00415.66
7.1.200.0060.00615.52
7.1.100.0100.00318.23
7.1.70.0000.00816.83
7.1.60.0100.01319.30
7.1.50.0090.01316.89
7.1.00.0000.08322.44
7.0.200.0070.00016.41
7.0.60.0200.08321.74
7.0.50.0070.07317.73
7.0.40.0130.03320.40
7.0.30.0200.04020.19
7.0.20.0400.07020.22
7.0.10.0030.06320.16
7.0.00.0030.08720.09
5.6.280.0030.03021.07
5.6.210.0170.07320.50
5.6.200.0000.05018.18
5.6.190.0000.05320.52
5.6.180.0500.04020.60
5.6.170.0300.07720.54
5.6.160.0070.06320.50
5.6.150.0070.05018.12
5.6.140.0070.05018.18
5.6.130.0030.08318.18
5.6.120.0000.09021.09
5.6.110.0030.09321.12
5.6.100.0070.07020.96
5.6.90.0100.03721.12
5.6.80.0100.08020.30
5.5.350.0200.08020.43
5.5.340.0100.06318.02
5.5.330.0030.08320.27
5.5.320.0230.06020.36
5.5.310.0170.04720.30
5.5.300.0130.06317.94
5.5.290.0030.05017.94
5.5.280.0000.05320.79
5.5.270.0070.04020.86
5.5.260.0130.07720.75
5.5.250.0030.05020.54
5.5.240.0130.07720.16

preferences:
41.5 ms | 401 KiB | 5 Q