3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is an example string"; $token = strtok($string, " "); while ($token !== false) { echo $token . PHP_EOL; $token = strtok(" "); }

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.0070.00220.43
8.4.110.0070.00422.38
8.4.100.0100.01017.59
8.4.90.0070.01218.81
8.4.80.0110.00817.84
8.4.70.0050.00317.70
8.4.60.0140.00618.70
8.4.50.0140.00919.63
8.4.40.0030.00717.55
8.4.30.0160.00320.79
8.4.20.0170.00317.57
8.4.10.0090.00023.76
8.3.250.0110.00819.13
8.3.240.0100.00816.46
8.3.230.0100.00616.54
8.3.220.0050.00317.04
8.3.210.0040.00316.37
8.3.200.0060.00216.43
8.3.190.0150.00416.88
8.3.180.0140.00618.19
8.3.170.0150.00317.01
8.3.160.0080.00016.47
8.3.150.0040.00416.99
8.3.140.0030.00616.49
8.3.130.0030.00918.58
8.3.120.0040.00418.84
8.3.110.0060.00320.94
8.3.100.0130.00324.06
8.3.90.0080.00026.77
8.3.80.0100.00317.97
8.3.70.0090.00916.50
8.3.60.0110.00416.63
8.3.50.0110.00416.55
8.3.40.0070.01020.17
8.3.30.0100.00320.22
8.3.20.0020.00524.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.290.0050.00320.50
8.2.280.0060.00318.63
8.2.270.0150.00316.96
8.2.260.0040.00418.25
8.2.250.0080.00018.19
8.2.240.0080.00818.96
8.2.230.0050.00322.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0030.00618.18
8.2.190.0160.00616.58
8.2.180.0170.00316.50
8.2.170.0040.01218.96
8.2.160.0100.00722.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00022.26
8.2.110.0030.00722.29
8.2.100.0090.00317.72
8.2.90.0030.00617.97
8.2.80.0040.00418.89
8.2.70.0180.00079.33
8.2.60.0160.00379.33
8.2.50.0140.00479.33
8.2.40.0150.00379.33
8.2.30.0110.00579.33
8.2.20.0100.00779.33
8.2.10.0110.00979.33
8.2.00.0140.00579.33
8.1.330.0100.00921.60
8.1.320.0080.01116.07
8.1.310.0080.00016.25
8.1.300.0040.00417.72
8.1.290.0030.00730.84
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.93
8.1.230.0040.00721.04
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0100.00779.33
8.1.190.0170.00079.33
8.1.180.0150.00479.33
8.1.170.0150.00379.33
8.1.160.0170.00079.33
8.1.150.0130.00379.33
8.1.140.0070.01079.33
8.1.130.0130.00379.33
8.1.120.0130.00479.33
8.1.110.0150.00379.33
8.1.100.0180.00079.33
8.1.90.0070.01079.33
8.1.80.0070.00979.33
8.1.70.0110.00679.33
8.1.60.0180.00079.33
8.1.50.0120.00679.33
8.1.40.0130.00479.33
8.1.30.0180.00079.33
8.1.20.0100.01079.33
8.1.10.0110.00779.33
8.1.00.0130.00679.33
8.0.300.0020.00520.13
8.0.290.0140.00579.33
8.0.280.0130.00779.33
8.0.270.0110.00779.33
8.0.260.0170.00779.33
8.0.250.0180.00079.33
8.0.240.0140.00679.33
8.0.230.0180.00079.33
8.0.220.0220.00079.33
8.0.210.0150.00379.33
8.0.200.0190.00079.33
8.0.190.0120.00679.33
8.0.180.0180.00379.33
8.0.170.0100.00879.33
8.0.160.0100.01079.33
8.0.150.0130.00579.33
8.0.140.0100.00879.33
8.0.130.0120.00879.33
8.0.120.0190.00079.33
8.0.110.0110.00679.33
8.0.100.0160.00579.33
8.0.90.0170.00379.33
8.0.80.0140.00479.33
8.0.70.0090.00979.33
8.0.60.0160.00579.33
8.0.50.0120.00679.33
8.0.30.0130.00779.33
8.0.20.0160.00679.33
8.0.10.0080.01179.33

preferences:
28.73 ms | 403 KiB | 5 Q