3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ 'Paid a bill £0.90', 'Paid a bill £100', 'Paid a bill £100.10', 'Paid a bill £1000' ]; foreach ($tests as $test) { var_dump(sscanf($test, '%*[^£]£%f')[0]); echo "\n"; }

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.80.0080.00416.25
8.3.70.0120.00616.63
8.3.60.0150.00320.25
8.3.50.0040.01120.06
8.3.40.0070.00720.21
8.3.30.0120.00318.48
8.3.20.0070.00024.18
8.3.10.0060.00324.66
8.3.00.0040.00426.16
8.2.200.0030.00616.38
8.2.190.0150.00616.58
8.2.180.0070.01125.92
8.2.170.0120.00319.11
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0060.00321.04
8.2.100.0080.00417.78
8.2.90.0030.00617.75
8.2.80.0030.00618.73
8.2.70.0000.00817.50
8.2.60.0040.00417.50
8.2.50.0060.00318.04
8.2.40.0000.00718.28
8.2.30.0040.00418.12
8.2.20.0000.00720.33
8.2.10.0070.00018.05
8.2.00.0070.00019.11
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00722.00
8.1.230.0110.00022.71
8.1.220.0040.00418.57
8.1.210.0080.00018.77
8.1.200.0040.00417.48
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00817.62
8.1.160.0040.00418.82
8.1.150.0000.00718.50
8.1.140.0050.00317.45
8.1.130.0000.00718.81
8.1.120.0070.00017.46
8.1.110.0040.00417.51
8.1.100.0030.00417.43
8.1.90.0040.00417.30
8.1.80.0060.00317.37
8.1.70.0100.00617.21
8.1.60.0100.00717.47
8.1.50.0160.00317.41
8.1.40.0120.00617.37
8.1.30.0190.00017.62
8.1.20.0150.00317.46
8.1.10.0040.01317.52
8.1.00.0180.00017.37
8.0.300.0000.00820.07
8.0.290.0000.00816.63
8.0.280.0000.00818.43
8.0.270.0030.00316.68
8.0.260.0030.00318.43
8.0.250.0030.00316.83
8.0.240.0030.00316.98
8.0.230.0070.00016.88
8.0.220.0070.00016.85
8.0.210.0110.00416.82
8.0.200.0130.00316.75
8.0.190.0080.00816.82
8.0.180.0160.00016.79
8.0.170.0110.00516.71
8.0.160.0090.00616.68
8.0.150.0100.00316.74
8.0.140.0090.00516.68
8.0.130.0120.00416.65
8.0.120.0100.00716.84
8.0.110.0110.00416.71
8.0.100.0120.00416.85
8.0.90.0150.00316.76
8.0.80.0100.00416.79
8.0.70.0040.00816.68
8.0.60.0130.00316.74
8.0.50.0100.00316.68
8.0.30.0110.00716.70
8.0.20.0160.00416.90
8.0.10.0150.00316.73
7.4.330.0050.00015.55
7.4.320.0030.00316.50
7.4.300.0070.00016.42
7.4.290.0100.01016.46
7.4.280.0150.00416.57
7.4.270.0130.00616.41
7.4.260.0090.00916.41
7.4.250.0120.00516.43
7.4.240.0100.00616.33
7.4.230.0130.00316.45
7.4.220.0090.00516.40
7.4.210.0090.00516.34
7.4.200.0060.00616.31
7.4.190.0050.00816.45
7.4.180.0080.00516.46
7.4.160.0030.00916.47
7.4.150.0100.00316.46
7.4.140.0130.00016.37
7.4.130.0110.00216.28
7.4.120.0150.00016.40
7.4.110.0070.00316.32
7.4.100.0080.00416.42
7.4.90.0030.00816.29
7.4.80.0030.00616.43
7.4.70.0040.00816.31
7.4.60.0150.00016.42
7.4.50.0110.00416.33
7.4.40.0120.00316.16
7.4.30.0030.00616.30
7.4.20.0000.00916.36
7.4.10.0080.00016.27
7.4.00.0000.00716.41

preferences:
28.39 ms | 403 KiB | 5 Q