3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strtokInIsolatedScope = function () { $str = str_repeat('abcdef', 1000); strtok($str, 'a'); }; $strtokInIsolatedScope(); var_dump(strtok('a'));

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.120.0110.00624.14
8.4.110.0140.00521.44
8.4.100.0050.00718.75
8.4.90.0130.00718.43
8.4.80.0050.00419.40
8.4.70.0120.01117.86
8.4.60.0120.00918.95
8.4.50.0110.00918.48
8.4.40.0090.00017.81
8.4.30.0100.00620.76
8.4.20.0140.00719.50
8.4.10.0090.00019.64
8.3.250.0110.00819.09
8.3.240.0100.01016.99
8.3.230.0100.00916.63
8.3.220.0060.00317.23
8.3.210.0110.00716.46
8.3.200.0050.00416.49
8.3.190.0100.00717.06
8.3.180.0110.00817.10
8.3.170.0090.00920.61
8.3.160.0130.00317.35
8.3.150.0040.00417.09
8.3.140.0090.00917.20
8.3.130.0070.00316.75
8.3.120.0090.00919.07
8.3.110.0040.00416.41
8.3.100.0040.00420.23
8.3.90.0240.00317.30
8.3.80.0220.00817.03
8.3.70.0290.00517.20
8.3.60.0170.01417.51
8.3.50.0230.00816.29
8.3.40.0230.00219.40
8.3.30.0140.00920.29
8.3.20.0220.00920.17
8.3.10.0190.01020.23
8.3.00.0220.00920.17
8.2.290.0110.00720.36
8.2.280.0130.01018.26
8.2.270.0070.01118.88
8.2.260.0040.00418.48
8.2.250.0030.00618.65
8.2.240.0040.00417.38
8.2.230.0060.00920.94
8.2.220.0040.00424.06
8.2.210.0170.00221.64
8.2.200.0210.00717.33
8.2.190.0200.00916.41
8.2.180.0160.00716.48
8.2.170.0180.00320.11
8.2.160.0090.00920.23
8.2.150.0150.00320.29
8.2.140.0110.00720.17
8.2.130.0160.00420.16
8.2.120.0210.00720.11
8.2.110.0240.00820.23
8.2.100.0220.00620.22
8.2.90.0230.00720.23
8.2.80.0180.00720.11
8.2.70.0170.00320.11
8.2.60.0170.00620.23
8.2.50.0120.00820.17
8.2.40.0150.01020.17
8.2.30.0250.00720.04
8.2.20.0130.00620.17
8.2.10.0200.00720.23
8.2.00.0150.01220.17
8.1.330.0110.00821.67
8.1.320.0120.00816.19
8.1.310.0040.00418.50
8.1.300.0130.00719.55
8.1.290.0210.00523.29
8.1.280.0150.01321.02
8.1.270.0230.00320.11
8.1.260.0240.00619.97
8.1.250.0180.01120.10
8.1.240.0200.00820.16
8.1.230.0210.00720.10
8.1.220.0230.00320.15
8.1.210.0250.00320.09
8.1.200.0270.00519.91
8.1.190.0210.00620.04
8.1.180.0200.00719.98
8.1.170.0130.00620.09
8.1.160.0140.00520.11
8.1.150.0180.01119.98
8.1.140.0100.01019.98
8.1.130.0210.00720.11
8.1.120.0250.00219.98
8.1.110.0250.00320.10
8.1.100.0170.00920.09
8.1.90.0210.00720.03
8.1.80.0230.00320.09
8.1.70.0150.01220.09
8.1.60.0190.01120.04
8.1.50.0260.00420.23
8.1.40.0250.00620.04
8.1.30.0200.00820.22
8.1.20.0190.00920.17
8.1.10.0290.00320.04
8.1.00.0250.00320.11

preferences:
34.3 ms | 403 KiB | 5 Q