3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'Some Text', 'Some Other Text (+£14.20)', 'Foo', 'Text Text (+£26.88)', 'Another One (+£68.04)', ]; $result = []; foreach ($array as $v) { sscanf($v . ' (+£0)', '%[^(](+£%f)', $item, $price); $result[rtrim($item)] = $price; } var_export($result);

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.0110.01017.47
8.4.120.0110.00920.59
8.4.110.0090.01118.73
8.4.100.0060.00517.81
8.4.90.0110.00920.55
8.4.80.0050.00518.82
8.4.70.0100.00920.75
8.4.60.0090.01220.59
8.4.50.0040.00517.98
8.4.40.0160.00017.41
8.4.30.0100.00918.64
8.4.20.0100.01021.45
8.4.10.0030.00619.43
8.3.260.0110.00916.67
8.3.250.0060.00220.91
8.3.240.0090.01016.49
8.3.230.0110.00816.52
8.3.220.0120.00620.76
8.3.210.0120.00818.43
8.3.200.0060.00316.21
8.3.190.0110.00717.15
8.3.180.0100.01016.37
8.3.170.0070.01118.91
8.3.160.0130.00316.31
8.3.150.0090.00617.17
8.3.140.0050.00316.62
8.3.130.0060.00318.63
8.3.120.0060.00318.98
8.3.110.0100.01020.94
8.3.100.0110.00024.06
8.3.90.0100.01026.77
8.3.80.0040.00417.97
8.3.70.0390.01017.97
8.3.60.0110.00818.56
8.3.50.0110.00718.21
8.3.40.0340.01117.97
8.3.30.0250.01417.97
8.3.20.0290.01117.97
8.3.10.0350.01017.97
8.3.00.0320.00917.97
8.2.290.0120.00817.30
8.2.280.0100.01018.53
8.2.270.0130.00716.96
8.2.260.0140.00418.04
8.2.250.0050.00316.61
8.2.240.0100.00316.95
8.2.230.0080.00022.58
8.2.220.0100.01037.54
8.2.210.0150.00426.77
8.2.200.0000.00918.41
8.2.190.0400.00317.97
8.2.180.0310.01017.97
8.2.170.0330.01117.97
8.2.160.0410.00317.97
8.2.150.0380.00817.97
8.2.140.0430.00417.97
8.2.130.0330.01217.97
8.2.120.0300.00717.97
8.2.110.0400.00917.97
8.2.100.0350.00617.97
8.2.90.0270.01017.97
8.2.80.0270.00817.97
8.2.70.0340.00317.97
8.2.60.0240.01017.97
8.2.50.0240.00817.97
8.2.40.0170.01217.97
8.2.30.0360.00417.97
8.2.20.0330.00717.97
8.2.10.0290.01217.97
8.2.00.0390.00417.97
8.1.330.0100.01016.19
8.1.320.0130.00717.88
8.1.310.0030.00517.75
8.1.300.0050.00518.61
8.1.290.0060.00330.84
8.1.280.0420.01017.97
8.1.270.0300.00417.97
8.1.260.0200.00317.97
8.1.250.0170.00617.97
8.1.240.0180.00417.97
8.1.230.0180.00917.97
8.1.220.0170.00717.97
8.1.210.0190.00617.97
8.1.200.0230.00317.97
8.1.190.0190.00717.97
8.1.180.0270.00017.97
8.1.170.0210.00617.97
8.1.160.0210.01717.97
8.1.150.0220.00817.97
8.1.140.0290.00717.97
8.1.130.0330.00417.97
8.1.120.0230.01517.97
8.1.110.0370.00317.97
8.1.100.0350.00317.97
8.1.90.0290.01217.97
8.1.80.0320.01117.97
8.1.70.0260.01317.97
8.1.60.0250.01317.97
8.1.50.0260.00717.97
8.1.40.0160.00517.97
8.1.30.0230.00417.97
8.1.20.0260.00017.97
8.1.10.0120.01217.97
8.1.00.0320.00617.97

preferences:
47.1 ms | 403 KiB | 5 Q