3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json_data['data'] = explode("\n", 'MEL1INFA73 Confirmed. Ksh29.00 sent to Safaricom Offers for account Tunukiwa on 21/5/18 at 3:29 AM New M-PESA balance is Ksh5.50. Transaction cost, Ksh0.00. MEE6ESSVCS Confirmed. Ksh2,240.00 paid to Naivas West End Plaza. on 14/5/18 at 8:13 PM.New M-PESA balance is Ksh4,753.50. Transaction cost, Ksh0.00. MEF1EZ0MNR Confirmed.You have received Ksh10,000.00 from Barclays Bank K LTD 303031 on 15/5/18 at 9:36 AM New M-PESA balance is Ksh14,775.50. Buy goods with M-PESA'); $AllItems = implode(" ", $json_data["data"]); preg_match_all("/ksh\s*(\d+\.\d+)/i", str_replace(",","",$AllItems), $matches); $total = array_sum($matches[1]); echo $total;

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.4.130.0050.00418.05
8.4.120.0150.00520.68
8.4.110.0060.01222.75
8.4.100.0160.00617.95
8.4.90.0100.00818.86
8.4.80.0040.00718.06
8.4.70.0110.00618.29
8.4.60.0100.01020.54
8.4.50.0070.00218.71
8.4.40.0140.00718.75
8.4.30.0090.00922.10
8.4.20.0000.00918.72
8.4.10.0070.01319.61
8.3.260.0060.00316.57
8.3.250.0030.00518.74
8.3.240.0040.00516.88
8.3.230.0050.00316.54
8.3.220.0100.00816.96
8.3.210.0030.00416.63
8.3.200.0070.00216.90
8.3.190.0090.00918.75
8.3.180.0050.00516.64
8.3.170.0120.00616.97
8.3.160.0110.00818.37
8.3.150.0150.00317.05
8.3.140.0000.01017.05
8.3.130.0080.00018.34
8.3.120.0060.00319.00
8.3.110.0090.00020.94
8.3.100.0120.00324.06
8.3.90.0160.00326.77
8.3.80.0060.00318.56
8.3.70.0120.00616.75
8.3.60.0030.01418.30
8.3.50.0080.00418.79
8.3.40.0140.00019.22
8.3.30.0080.00818.99
8.3.20.0080.00020.77
8.3.10.0040.00423.50
8.3.00.0080.00022.40
8.2.290.0110.00920.59
8.2.280.0060.00822.84
8.2.270.0090.00917.02
8.2.260.0000.00818.31
8.2.250.0100.00016.67
8.2.240.0090.00019.09
8.2.230.0080.00022.58
8.2.220.0150.00437.54
8.2.210.0040.00426.77
8.2.200.0060.00316.75
8.2.190.0070.00718.79
8.2.180.0120.00618.41
8.2.170.0140.00022.96
8.2.160.0030.01022.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00321.16
8.2.120.0040.00426.35
8.2.110.0030.00722.33
8.2.100.0060.00617.84
8.2.90.0040.00417.88
8.2.80.0090.00317.97
8.2.70.0040.00417.92
8.2.60.0050.00318.02
8.2.50.0040.00418.10
8.2.40.0040.00419.30
8.2.30.0000.00819.33
8.2.20.0000.00718.01
8.2.10.0000.01019.24
8.2.00.0040.00418.13
8.1.330.0130.00522.28
8.1.320.0080.01216.43
8.1.310.0070.00718.34
8.1.300.0080.00817.82
8.1.290.0100.00018.88
8.1.280.0090.01425.92
8.1.270.0040.00418.93
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.92
8.1.230.0060.00619.18
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0030.00717.35
8.1.190.0040.00417.35
8.1.180.0000.00918.10
8.1.170.0040.00418.59
8.1.160.0070.00018.92
8.1.150.0000.00718.89
8.1.140.0080.00020.30
8.1.130.0070.00020.34
8.1.120.0100.00017.56
8.1.110.0040.00717.54
8.1.100.0000.00717.52
8.1.90.0000.00817.59
8.1.80.0000.00717.60
8.1.70.0000.00717.52
8.1.60.0050.00317.69
8.1.50.0030.00817.61
8.1.40.0040.00417.64
8.1.30.0040.00417.69
8.1.20.0000.00817.68
8.1.10.0080.00017.64
8.1.00.0070.00017.66
8.0.300.0000.00719.74
8.0.290.0020.00516.88
8.0.280.0000.00718.43
8.0.270.0040.00417.29
8.0.260.0030.00320.09
8.0.250.0070.00017.11
8.0.240.0020.00517.07
8.0.230.0000.00816.92
8.0.220.0030.00616.97
8.0.210.0040.00416.97
8.0.200.0030.00617.08
8.0.190.0040.00417.01
8.0.180.0030.00617.02
8.0.170.0030.00616.92
8.0.160.0000.00817.05
8.0.150.0030.00517.00
8.0.140.0000.00716.96
8.0.130.0030.00313.34
8.0.120.0050.00516.90
8.0.110.0040.00416.84
8.0.100.0000.00716.85
8.0.90.0050.00316.84
8.0.80.0120.01017.04
8.0.70.0040.00416.92
8.0.60.0000.00816.82
8.0.50.0040.00416.77
8.0.30.0070.01317.28
8.0.20.0120.00617.25
8.0.10.0030.00517.11
8.0.00.0120.01116.88
7.4.330.0050.00015.55
7.4.320.0030.00316.65
7.4.300.0000.00616.80
7.4.290.0000.00716.73
7.4.280.0050.00316.72
7.4.270.0000.00716.65
7.4.260.0070.00016.65
7.4.250.0030.00316.63
7.4.240.0000.00716.57
7.4.230.0030.00316.78
7.4.220.0050.00316.82
7.4.210.0100.00716.75
7.4.200.0000.00716.76
7.4.160.0070.00816.68
7.4.140.0080.01417.86
7.4.130.0090.00916.54
7.4.120.0110.00816.70
7.4.110.0160.00016.74
7.4.100.0110.01116.92
7.4.90.0110.00716.73
7.4.80.0120.01219.39
7.4.70.0110.00516.84
7.4.60.0090.01216.74
7.4.50.0030.01316.71
7.4.40.0070.01116.61
7.4.00.0100.00715.07
7.3.330.0050.00013.25
7.3.320.0000.00613.28
7.3.310.0070.00016.49
7.3.300.0070.00016.45
7.3.290.0000.00616.42
7.3.280.0070.01116.49
7.3.260.0080.00916.56
7.3.240.0110.00616.64
7.3.230.0080.00816.44
7.3.210.0030.01316.54
7.3.200.0030.01316.78
7.3.190.0030.01316.55
7.3.180.0170.00516.85
7.3.170.0090.01216.50
7.3.160.0090.00616.43
7.3.30.0100.01014.79
7.3.20.0470.01014.92
7.3.10.0380.01314.80
7.3.00.0500.00314.87
7.2.330.0120.01516.89
7.2.320.0090.00916.67
7.2.310.0070.01016.70
7.2.300.0110.00716.84
7.2.290.0120.00616.63
7.2.160.0090.01614.79
7.2.150.0490.01015.33
7.2.140.0490.00015.29
7.2.130.0450.00615.07
7.2.120.0440.00615.33
7.2.110.0420.00715.09
7.2.100.0560.00314.94
7.2.90.0530.00715.19
7.2.80.0420.00715.37
7.2.70.0400.00615.24
7.2.60.0380.00715.49
7.2.50.0450.00015.19
7.2.40.0550.00315.43
7.2.30.0570.00315.14
7.2.20.0460.00315.11
7.2.10.0390.01015.12
7.2.00.0440.00915.04
7.1.270.0410.00714.10
7.1.260.0480.00014.36
7.1.250.0470.00014.15

preferences:
29.23 ms | 403 KiB | 5 Q