3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello world.xls"; $token = strtok($string, "."); echo $token;

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.0090.00918.43
8.3.50.0130.01121.91
8.3.40.0100.00318.63
8.3.30.0100.00318.92
8.3.20.0100.00720.24
8.3.10.0030.00622.15
8.3.00.0040.00422.23
8.2.180.0090.00616.63
8.2.170.0060.01622.96
8.2.160.0070.00720.94
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0040.00417.50
8.2.110.0060.00322.04
8.2.100.0090.00319.55
8.2.90.0080.00019.14
8.2.80.0050.00317.97
8.2.70.0100.00017.50
8.2.60.0050.00318.04
8.2.50.0040.00418.07
8.2.40.0000.00818.15
8.2.30.0000.00717.92
8.2.20.0040.00417.71
8.2.10.0040.00417.73
8.2.00.0040.00417.77
8.1.280.0000.01425.92
8.1.270.0040.00422.07
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00023.85
8.1.230.0080.00319.16
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0000.00817.53
8.1.180.0050.00318.10
8.1.170.0030.00618.39
8.1.160.0070.00021.92
8.1.150.0040.00418.46
8.1.140.0000.00717.29
8.1.130.0080.00017.77
8.1.120.0050.00217.31
8.1.110.0040.00417.38
8.1.100.0040.00417.39
8.1.90.0000.00717.33
8.1.80.0070.00017.45
8.1.70.0030.00317.33
8.1.60.0030.00517.39
8.1.50.0000.00817.29
8.1.40.0040.00417.30
8.1.30.0000.00817.56
8.1.20.0030.00617.43
8.1.10.0030.00517.46
8.1.00.0000.00817.46
8.0.300.0040.00318.77
8.0.290.0040.00417.18
8.0.280.0000.00718.30
8.0.270.0060.00017.30
8.0.260.0000.00616.80
8.0.250.0040.00416.82
8.0.240.0080.00016.85
8.0.230.0000.00816.81
8.0.220.0000.00716.70
8.0.210.0000.00816.70
8.0.200.0030.00316.84
8.0.190.0000.00816.89
8.0.180.0080.00016.77
8.0.170.0000.01016.83
8.0.160.0040.00416.73
8.0.150.0040.00416.69
8.0.140.0000.00716.77
8.0.130.0030.00313.20
8.0.120.0060.00316.75
8.0.110.0000.00716.80
8.0.100.0030.00516.80
8.0.90.0050.00316.88
8.0.80.0040.01116.83
8.0.70.0050.00216.81
8.0.60.0070.00016.88
8.0.50.0000.00716.87
8.0.30.0110.00816.91
8.0.20.0100.00817.40
8.0.10.0070.00016.82
8.0.00.0090.01016.65
7.4.330.0020.00215.01
7.4.320.0060.00016.55
7.4.300.0000.00616.41
7.4.290.0050.00516.53
7.4.280.0040.00416.56
7.4.270.0040.00416.43
7.4.260.0000.00716.45
7.4.250.0000.00716.49
7.4.240.0020.00516.47
7.4.230.0030.00316.40
7.4.220.0070.01716.42
7.4.210.0070.00816.48
7.4.200.0000.00716.52
7.4.190.0030.00316.38
7.4.160.0170.00016.42
7.4.150.0110.00617.40
7.4.140.0080.01017.86
7.4.130.0120.00816.34
7.4.120.0090.00816.48
7.4.110.0130.00316.49
7.4.100.0070.01016.52
7.4.90.0070.01016.27
7.4.80.0180.00419.39
7.4.70.0080.00816.38
7.4.60.0070.01016.41
7.4.50.0040.00016.51
7.4.40.0030.00922.77
7.4.30.0100.00716.51
7.4.00.0050.01014.84
7.3.330.0030.00313.02
7.3.320.0050.00013.10
7.3.310.0030.00316.04
7.3.300.0000.00716.05
7.3.290.0030.01016.14
7.3.280.0100.00916.24
7.3.270.0030.01417.40
7.3.260.0030.01716.44
7.3.250.0090.00716.29
7.3.240.0160.00716.17
7.3.230.0130.00316.39
7.3.210.0080.01616.54
7.3.200.0140.00319.39
7.3.190.0070.01516.23
7.3.180.0030.01216.54
7.3.170.0060.01116.44
7.3.160.0120.00616.42
7.3.120.0060.00614.55
7.3.110.0040.01414.89
7.3.100.0000.01314.52
7.3.90.0000.00914.68
7.3.80.0050.00314.52
7.3.70.0060.00614.82
7.3.60.0070.00314.49
7.3.50.0090.00614.71
7.3.40.0040.01114.63
7.3.30.0040.01114.69
7.3.20.0130.00616.68
7.3.10.0030.01016.62
7.3.00.0060.00316.70
7.2.330.0140.00316.66
7.2.320.0060.01216.37
7.2.310.0160.00716.41
7.2.300.0040.01216.38
7.2.290.0060.01016.43
7.2.250.0060.01014.80
7.2.240.0100.00715.19
7.2.230.0080.00515.04
7.2.220.0030.01215.06
7.2.210.0060.00914.97
7.2.200.0060.00614.72
7.2.190.0070.00415.05
7.2.180.0040.00814.72
7.2.170.0100.00715.06
7.2.00.0000.01519.22
7.1.330.0070.00715.71
7.1.320.0070.00715.93
7.1.310.0040.00415.89
7.1.300.0080.00015.69
7.1.290.0080.00815.85
7.1.280.0060.00915.86
7.1.270.0120.00615.79
7.1.260.0130.00015.55
7.1.100.0090.00617.80
7.1.70.0060.01217.15
7.1.60.0030.00917.11
7.1.50.0120.00916.62
7.1.00.0100.06722.47
7.0.200.0000.00916.47
7.0.140.0100.06722.04
7.0.60.0070.05019.86
7.0.50.0070.07317.87
7.0.40.0030.09020.12
7.0.30.0570.07320.03
7.0.20.0230.07720.09
7.0.10.0200.05020.16
7.0.00.0100.08019.99
5.6.280.0100.06721.11
5.6.210.0070.03720.54
5.6.200.0000.05018.12
5.6.190.0000.04720.35
5.6.180.0070.08020.61
5.6.170.0270.08020.50
5.6.160.0000.05320.40
5.6.150.0000.08318.18
5.6.140.0130.07018.09
5.6.130.0030.08718.22
5.6.120.0100.08721.11
5.6.110.0100.07721.04
5.6.100.0070.05320.93
5.6.90.0070.08720.87
5.6.80.0170.08020.38
5.6.70.0270.06020.37
5.5.350.0100.07320.43
5.5.340.0100.07718.00
5.5.330.0130.08720.57
5.5.320.0170.04720.36
5.5.310.0370.07320.21
5.5.300.0170.06717.91
5.5.290.0000.06017.94
5.5.280.0070.06720.69
5.5.270.0100.07320.72
5.5.260.0130.08320.64
5.5.250.0030.04320.63
5.5.240.0100.07020.18
5.4.450.0770.06319.52
5.4.440.0270.06719.63
5.4.430.0100.05319.42
5.4.420.0070.06019.25
5.4.410.0070.06718.91
5.4.400.0270.05318.76
5.4.390.0430.04718.46
5.4.380.0300.04718.50
5.4.370.0030.04318.48
5.4.360.0030.04018.76
5.4.350.0070.04411.97
5.4.340.0060.03411.96
5.4.320.0080.03612.45
5.4.310.0090.04212.45
5.4.300.0060.04212.45
5.4.290.0100.03712.45
5.4.280.0070.03812.34
5.4.270.0200.05019.00
5.4.260.0070.06318.86
5.4.250.0070.06718.99
5.4.240.0230.06018.85
5.4.230.0070.06018.95
5.4.220.0130.07019.00
5.4.210.0100.05718.98
5.4.200.0200.04318.85
5.4.190.0100.05318.98
5.4.180.0270.06018.93
5.4.170.0230.06019.15
5.4.160.0130.05018.90
5.4.150.0170.05718.84
5.4.140.0130.05316.45
5.4.130.0100.04716.44
5.4.120.0070.05316.44
5.4.110.0130.06316.61
5.4.100.0100.05316.34
5.4.90.0130.07016.50
5.4.80.0070.05016.61
5.4.70.0130.06316.49
5.4.60.0170.06716.38
5.4.50.0100.05016.32
5.4.40.0130.04716.37
5.4.30.0070.05316.58
5.4.20.0300.04016.47
5.4.10.0130.05716.32
5.4.00.0200.06016.05
5.3.290.0080.04712.80
5.3.280.0100.05714.68
5.3.270.0100.06014.59
5.3.260.0100.08014.74
5.3.250.0100.05014.71
5.3.240.0100.07314.64
5.3.230.0200.04714.73
5.3.220.0130.07014.73
5.3.210.0100.05714.54
5.3.200.0130.07014.54
5.3.190.0130.06714.66
5.3.180.0170.06314.71
5.3.170.0170.04714.73
5.3.160.0100.07014.71
5.3.150.0100.06014.69
5.3.140.0100.05314.66
5.3.130.0200.05014.65
5.3.120.0130.07014.52
5.3.110.0130.05714.53
5.3.100.0200.05313.92
5.3.90.0200.06714.07
5.3.80.0200.04714.19
5.3.70.0170.05714.09
5.3.60.0100.06314.00
5.3.50.0030.05313.91
5.3.40.0000.06013.93
5.3.30.0030.06314.07
5.3.20.0070.05013.80
5.3.10.0070.04713.79
5.3.00.0030.05713.79
5.2.170.0100.05310.97
5.2.160.0070.04011.29
5.2.150.0230.03311.19
5.2.140.0100.04011.29
5.2.130.0070.04710.91
5.2.120.0100.04011.33
5.2.110.0070.03711.33
5.2.100.0070.05711.30
5.2.90.0170.03311.20
5.2.80.0070.04011.03
5.2.70.0000.05011.21
5.2.60.0070.04011.20
5.2.50.0000.05311.00
5.2.40.0030.04311.22
5.2.30.0000.04710.95
5.2.20.0000.04310.94
5.2.10.0170.03010.93
5.2.00.0030.04310.70
5.1.60.0070.03310.05
5.1.50.0030.03710.19
5.1.40.0100.04010.11
5.1.30.0070.04010.63
5.1.20.0030.04010.36
5.1.10.0070.04010.05
5.1.00.0000.04310.04
5.0.50.0000.0338.52
5.0.40.0030.0408.45
5.0.30.0070.0408.44
5.0.20.0030.0278.50
5.0.10.0030.0338.22
5.0.00.0070.0378.25
4.4.90.0070.0277.58
4.4.80.0070.0237.58
4.4.70.0000.0237.58
4.4.60.0030.0207.58
4.4.50.0070.0277.58
4.4.40.0000.0377.58
4.4.30.0100.0137.58
4.4.20.0070.0237.58
4.4.10.0030.0237.58
4.4.00.0030.0337.58
4.3.110.0070.0177.58
4.3.100.0030.0237.58
4.3.90.0000.0237.58
4.3.80.0070.0307.58
4.3.70.0000.0237.58
4.3.60.0030.0207.58
4.3.50.0030.0207.58
4.3.40.0070.0437.58
4.3.30.0000.0307.58
4.3.20.0030.0277.58
4.3.10.0000.0237.58
4.3.00.0130.0237.31

preferences:
42.75 ms | 400 KiB | 5 Q