3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ '133|mickmackusa|100|90|500', '133|mickmackusa|100|90', '133|mickmackusa|100', '133|mickmackusa', '133', '', ]; foreach ($tests as $test) { $matches = sscanf($test, '%d|%[^|]|%d|%d|%d', $user_id, $name, $limit, $remaining, $reset); var_export([ 'matches' => $matches, 'user_id' => $user_id, 'name' => $name, 'limit' => $limit, 'remaining' => $remaining, 'reset' => $reset ]); echo "\n"; unset($matches, $user_id, $name, $limit, $remaining, $reset); }

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.0090.01217.58
8.4.130.0150.00619.34
8.4.120.0100.00620.66
8.4.110.0100.01122.52
8.4.100.0120.00817.54
8.4.90.0060.00418.69
8.4.80.0070.00218.61
8.4.70.0090.00618.70
8.4.60.0080.00620.50
8.4.50.0060.00418.69
8.4.40.0090.00920.56
8.4.30.0180.00018.64
8.4.20.0140.00717.72
8.4.10.0050.00524.14
8.3.270.0040.00516.60
8.3.260.0120.00616.54
8.3.250.0140.00418.96
8.3.240.0130.00617.41
8.3.230.0140.00616.63
8.3.220.0050.00218.88
8.3.210.0110.00616.62
8.3.200.0060.00516.54
8.3.190.0110.00817.07
8.3.180.0140.00617.29
8.3.170.0030.01318.93
8.3.160.0130.00618.30
8.3.150.0130.00720.64
8.3.140.0000.00816.53
8.3.130.0030.00616.69
8.3.120.0060.00319.15
8.3.110.0080.00420.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0030.00617.97
8.3.70.0100.01018.22
8.3.60.0140.00716.75
8.3.50.0140.00718.51
8.3.40.0120.00319.79
8.3.30.0070.00718.72
8.3.20.0040.00424.18
8.3.10.0090.00024.66
8.3.00.0000.00726.16
8.2.290.0040.00520.58
8.2.280.0030.00518.30
8.2.270.0190.00017.25
8.2.260.0080.00316.45
8.2.250.0080.00018.37
8.2.240.0080.00017.12
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0060.00316.50
8.2.190.0090.00616.63
8.2.180.0110.00716.63
8.2.170.0100.01018.99
8.2.160.0070.01022.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.01019.66
8.2.110.0070.00320.93
8.2.100.0090.00317.84
8.2.90.0040.00418.03
8.2.80.0030.00518.22
8.2.70.0000.00817.50
8.2.60.0080.00017.63
8.2.50.0120.00619.49
8.2.40.0060.00919.49
8.2.30.0040.01319.49
8.2.20.0110.00519.49
8.2.10.0140.00319.49
8.2.00.0180.00019.49
8.1.330.0140.00421.95
8.1.320.0120.00717.86
8.1.310.0140.00316.67
8.1.300.0000.00817.77
8.1.290.0100.00030.84
8.1.280.0150.00025.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00020.99
8.1.230.0040.00822.16
8.1.220.0070.00317.79
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0120.00319.49
8.1.170.0100.00719.49
8.1.160.0130.00319.49
8.1.150.0140.00319.49
8.1.140.0060.01219.49
8.1.130.0150.00019.49
8.1.120.0110.00519.49
8.1.110.0120.00419.49
8.1.100.0090.00619.49
8.1.90.0110.00519.49
8.1.80.0070.00819.49
8.1.70.0170.00019.49
8.1.60.0130.00719.49
8.1.50.0090.00919.49
8.1.40.0130.00519.49
8.1.30.0190.00019.49
8.1.20.0140.00519.49
8.1.10.0150.00419.49
8.1.00.0150.00319.49
8.0.300.0000.00720.04
8.0.290.0040.00416.75
8.0.280.0160.00519.49
8.0.270.0120.00519.49
8.0.260.0170.00019.49
8.0.250.0150.00019.49
8.0.240.0100.00719.49
8.0.230.0160.00019.49
8.0.220.0170.00019.49
8.0.210.0080.00819.49
8.0.200.0180.00019.49
8.0.190.0050.01019.49
8.0.180.0080.00819.49
8.0.170.0110.00519.49
8.0.160.0140.00319.49
8.0.150.0140.00319.49
8.0.140.0000.01719.49
8.0.130.0000.01719.49
8.0.120.0110.00719.49
8.0.110.0060.00919.49
8.0.100.0120.00419.49
8.0.90.0170.00019.49
8.0.80.0130.00219.49
8.0.70.0170.00019.49
8.0.60.0170.00019.49
8.0.50.0180.00019.49
8.0.30.0140.00319.49
8.0.20.0160.00019.49
8.0.10.0170.00019.49
7.2.00.0230.00724.66

preferences:
32.17 ms | 403 KiB | 5 Q