3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'blahblah1323r8b|7.45'; var_export( sscanf($str, '%[^|]|%f') ); echo "\n\nor\n\n"; sscanf($str, '%[^|]|%f', $left, $right); var_dump($left, $right); echo "\n\nor\n\n"; [$key, $result[$key]] = sscanf($str, '%[^|]|%f'); 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.140.0150.00917.63
8.4.130.0030.00618.82
8.4.120.0110.00918.45
8.4.110.0100.00318.60
8.4.100.0130.00717.72
8.4.90.0090.00120.76
8.4.80.0060.00718.88
8.4.70.0070.00218.63
8.4.60.0140.00620.59
8.4.50.0130.00918.72
8.4.40.0140.00317.91
8.4.30.0080.00020.67
8.4.20.0140.00319.53
8.4.10.0000.00919.70
8.3.260.0130.00616.29
8.3.250.0080.01016.68
8.3.240.0100.00916.65
8.3.230.0070.00116.80
8.3.220.0150.00420.91
8.3.210.0060.00218.21
8.3.200.0050.00416.41
8.3.190.0110.00717.09
8.3.180.0100.00918.72
8.3.170.0170.00316.54
8.3.160.0110.00717.21
8.3.150.0060.01316.92
8.3.140.0040.00418.25
8.3.130.0000.00818.94
8.3.120.0090.00018.89
8.3.110.0060.00320.94
8.3.100.0060.00316.36
8.3.90.0340.01626.77
8.3.80.0430.00726.77
8.3.70.0380.01326.77
8.3.60.0320.01426.77
8.3.50.0370.00926.77
8.3.40.0340.01026.77
8.3.30.0310.00826.77
8.3.20.0360.00326.77
8.3.10.0330.00926.77
8.3.00.0260.00726.77
8.2.290.0100.00917.32
8.2.280.0040.00418.56
8.2.270.0090.00916.48
8.2.260.0090.00916.66
8.2.250.0040.00416.77
8.2.240.0030.00517.37
8.2.230.0070.01422.58
8.2.220.0060.01324.06
8.2.210.0280.01426.77
8.2.200.0310.00926.77
8.2.190.0280.01026.77
8.2.180.0200.00826.77
8.2.170.0170.00326.77
8.2.160.0150.00526.77
8.2.150.0310.00926.77
8.2.140.0220.00426.77
8.2.130.0140.00726.77
8.2.120.0330.01026.77
8.2.110.0330.01326.77
8.2.100.0390.00426.77
8.2.90.0330.01026.77
8.2.80.0340.00826.77
8.2.70.0290.01226.77
8.2.60.0400.00326.77
8.2.50.0310.01226.77
8.2.40.0220.00526.77
8.2.30.0190.01926.77
8.2.20.0200.00826.77
8.2.10.0310.00726.77
8.2.00.0420.00826.77
8.1.330.0050.00516.18
8.1.320.0110.00720.04
8.1.310.0110.00816.12
8.1.300.0110.00817.86
8.1.290.0250.01226.77
8.1.280.0270.01426.77
8.1.270.0390.00426.77
8.1.260.0350.00726.77
8.1.250.0330.01126.77
8.1.240.0280.00926.77
8.1.230.0300.00426.77
8.1.220.0380.00426.77
8.1.210.0300.00926.77
8.1.200.0300.00426.77
8.1.190.0110.00826.77
8.1.180.0250.00026.77
8.1.170.0310.00726.77
8.1.160.0290.01226.77
8.1.150.0350.00626.77
8.1.140.0370.00026.77
8.1.130.0290.00926.77
8.1.120.0260.00926.77
8.1.110.0290.01026.77
8.1.100.0330.00626.77
8.1.90.0340.00426.77
8.1.80.0280.00926.77
8.1.70.0310.00626.77
8.1.60.0280.01226.77
8.1.50.0340.00826.77
8.1.40.0300.00726.77
8.1.30.0370.00826.77
8.1.20.0320.01226.77
8.1.10.0330.00926.77
8.1.00.0220.01926.77

preferences:
35.19 ms | 403 KiB | 5 Q