3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "123 Fab Test"; for ($i = 0; $i<10000; $i++) { sscanf($str, "%d %s %s", $id, $first, $last); echo $id, $first, $last, PHP_EOL; }

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.60.0410.00618.18
8.3.50.0490.01521.87
8.3.40.0420.00718.71
8.3.30.0680.02419.02
8.3.20.0450.02420.24
8.3.10.0440.01322.08
8.3.00.0110.01122.32
8.2.180.0240.01716.63
8.2.170.0690.02022.96
8.2.160.0560.02020.94
8.2.150.0470.03024.18
8.2.140.0290.01924.66
8.2.130.0690.00726.16
8.2.120.0310.01017.38
8.2.110.0210.00722.23
8.2.100.0230.01019.45
8.2.90.0090.00619.08
8.2.80.0150.00017.97
8.2.70.0070.00717.50
8.2.60.0240.00517.91
8.2.50.0090.00618.07
8.2.40.0130.01018.22
8.2.30.0150.00018.02
8.2.20.0150.00817.73
8.2.10.0130.01017.63
8.2.00.0160.00917.80
8.1.280.0550.02025.92
8.1.270.0420.00722.20
8.1.260.0530.01226.35
8.1.250.0180.00328.09
8.1.240.0390.00923.83
8.1.230.0200.01419.21
8.1.220.0100.01317.74
8.1.210.0040.01118.77
8.1.200.0130.00817.11
8.1.190.0150.00017.51
8.1.180.0110.00418.76
8.1.170.0070.00718.58
8.1.160.0110.00423.74
8.1.150.0190.00318.52
8.1.140.0210.00317.45
8.1.130.0180.00917.73
8.1.120.0030.01017.52
8.1.110.0000.01417.32
8.1.100.0170.00717.44
8.1.90.0120.00917.41
8.1.80.0040.00917.48
8.1.70.0110.00417.43
8.1.60.0080.00817.59
8.1.50.0140.01017.53
8.1.40.0130.01317.53
8.1.30.0160.01317.55
8.1.20.0160.00617.54
8.1.10.0150.00317.54
8.1.00.0150.00317.42
8.0.300.0090.00618.77
8.0.290.0130.00916.93
8.0.280.0000.01418.38
8.0.270.0110.01417.12
8.0.260.0100.01316.72
8.0.250.0040.01816.91
8.0.240.0140.00016.91
8.0.230.0070.00716.82
8.0.220.0030.01016.64
8.0.210.0180.00316.73
8.0.200.0110.01116.82
8.0.190.0100.00316.85
8.0.180.0110.00416.70
8.0.170.0000.01716.79
8.0.160.0100.00316.80
8.0.150.0050.00916.67
8.0.140.0090.00916.65
8.0.130.0100.00713.30
8.0.120.0070.02116.66
8.0.110.0120.00416.62
8.0.100.0070.01416.55
8.0.90.0040.01116.73
8.0.80.0440.05416.77
8.0.70.0040.00816.71
8.0.60.0080.00416.64
8.0.50.0140.00016.82
8.0.30.0770.02716.93
8.0.20.0860.04817.40
8.0.10.0060.01016.71
8.0.00.0840.05016.70
7.4.330.0160.00315.00
7.4.320.0030.00916.35
7.4.300.0080.00416.38
7.4.290.0130.01016.22
7.4.280.0120.00316.31
7.4.270.0100.00316.41
7.4.260.0190.01316.39
7.4.250.0170.01016.29
7.4.240.0110.00916.30
7.4.230.0080.00516.43
7.4.220.0450.04816.45
7.4.210.0370.03716.43
7.4.200.0060.00616.44
7.4.190.0180.00316.46
7.4.160.0920.02716.39
7.4.150.1250.04117.40
7.4.140.1000.04417.86
7.4.130.0810.04416.28
7.4.120.0780.05116.28
7.4.110.0800.05616.46
7.4.100.0970.05216.28
7.4.90.0680.05216.37
7.4.80.0620.04519.39
7.4.70.0760.03516.24
7.4.60.0640.03216.29
7.4.50.0180.00416.32
7.4.40.0190.02322.77
7.4.30.0400.05716.20
7.4.00.0320.01814.42
7.3.330.0130.00713.10
7.3.320.0090.01313.01
7.3.310.0060.00916.23
7.3.300.0060.00616.23
7.3.290.0360.03916.17
7.3.280.0370.03916.13
7.3.270.0620.05217.40
7.3.260.1010.04816.47
7.3.250.0850.04416.22
7.3.240.1010.05916.46
7.3.230.0970.05216.39
7.3.210.0760.05616.43
7.3.200.0440.05319.39
7.3.190.0760.05416.46
7.3.180.0560.05316.47
7.3.170.0770.07116.46
7.3.160.0520.04916.15
7.3.120.0140.02114.53
7.2.330.0910.03216.62
7.2.320.0650.03416.60
7.2.310.0380.05116.70
7.2.300.0730.06616.21
7.2.290.0780.04316.40
7.2.110.0640.00016.26
7.2.00.0220.00619.09
7.1.100.0070.01717.84
7.1.70.0100.00316.84
7.1.60.0380.01619.82
7.1.50.0300.00417.17
7.0.200.0310.00316.71

preferences:
33.97 ms | 401 KiB | 5 Q