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.3.70.0120.00616.75
8.3.60.0030.01418.30
8.3.50.0110.00418.21
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.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.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:
18.14 ms | 401 KiB | 5 Q