3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Sample task text ^2014-03-22 @Context &Tag"; $tok = strtok($string, '^@'); while($tok !== false) { echo $tok."\n"</br>"; $tok = 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)
5.4.260.0070.08318.75
5.4.250.0100.06318.77
5.4.240.0000.06319.00
5.4.230.0130.06718.95
5.4.220.0100.07718.67
5.4.210.0130.06718.79
5.4.200.0000.06018.80
5.4.190.0100.05718.93
5.4.180.0100.05018.97
5.4.170.0070.05318.89
5.4.160.0070.05018.97
5.4.150.0130.04718.64
5.4.140.0000.05716.50
5.4.130.0200.05316.50
5.4.120.0030.05016.52
5.4.110.0070.05016.56
5.4.100.0030.05316.44
5.4.90.0070.04716.53
5.4.80.0100.04316.49
5.4.70.0070.06016.73
5.4.60.0030.05016.55
5.4.50.0000.05316.39
5.4.40.0170.06316.55
5.4.30.0100.05016.46
5.4.20.0070.05716.67
5.4.10.0070.05016.38
5.4.00.0070.04715.94
5.3.280.0170.07014.60
5.3.270.0070.05014.70
5.3.260.0100.05014.62
5.3.250.0170.04014.38
5.3.240.0100.04714.52
5.3.230.0130.04714.70
5.3.220.0000.05714.34
5.3.210.0130.07014.57
5.3.200.0030.05314.27
5.3.190.0030.05314.48
5.3.180.0100.05014.59
5.3.170.0100.04714.66
5.3.160.0100.04714.27
5.3.150.0100.04314.57
5.3.140.0070.05014.56
5.3.130.0130.04314.55
5.3.120.0000.06014.54
5.3.110.0070.05014.70
5.3.100.0130.04714.13
5.3.90.0030.05014.01
5.3.80.0200.05314.04
5.3.70.0000.05714.04
5.3.60.0200.05713.86
5.3.50.0000.05714.04
5.3.40.0170.05313.96
5.3.30.0030.05014.00
5.3.20.0030.05013.84
5.3.10.0000.05313.69
5.3.00.0070.05013.43
5.2.170.0030.04311.16
5.2.160.0170.05711.25
5.2.150.0070.04711.06
5.2.140.0130.04711.13
5.2.130.0030.04011.11
5.2.120.0030.04011.01
5.2.110.0030.04310.93
5.2.100.0230.03311.00
5.2.90.0170.02711.11
5.2.80.0070.04011.24
5.2.70.0030.04310.97
5.2.60.0100.03310.97
5.2.50.0030.04311.04
5.2.40.0030.05011.00
5.2.30.0130.03310.73
5.2.20.0000.04310.98
5.2.10.0100.03310.71
5.2.00.0100.04010.87
5.1.60.0130.0239.88
5.1.50.0030.03710.04
5.1.40.0070.03010.07
5.1.30.0070.03710.36
5.1.20.0030.03710.13
5.1.10.0070.04310.12
5.1.00.0030.03710.10
5.0.50.0000.0308.39
5.0.40.0000.0308.29
5.0.30.0100.0378.27
5.0.20.0000.0308.15
5.0.10.0070.0278.36
5.0.00.0070.0538.13
4.4.90.0000.0236.52
4.4.80.0000.0236.52
4.4.70.0070.0276.52
4.4.60.0030.0206.52
4.4.50.0000.0306.52
4.4.40.0000.0336.52
4.4.30.0030.0276.52
4.4.20.0030.0206.52
4.4.10.0000.0236.52
4.4.00.0000.0376.52
4.3.110.0030.0236.52
4.3.100.0030.0276.52
4.3.90.0100.0206.52
4.3.80.0030.0306.52
4.3.70.0070.0136.52
4.3.60.0000.0206.52
4.3.50.0000.0276.52
4.3.40.0030.0476.52
4.3.30.0030.0236.52
4.3.20.0070.0176.52
4.3.10.0030.0176.52
4.3.00.0070.0237.80

preferences:
139.56 ms | 1394 KiB | 7 Q