3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Posted Back On April 6th By Some Dude"; var_export(strtok($text, 'By'));

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.130.0090.00817.84
8.4.120.0120.00420.52
8.4.110.0100.01318.70
8.4.100.0090.00917.57
8.4.90.0110.00920.29
8.4.80.0120.00917.30
8.4.70.0150.00517.86
8.4.60.0100.00417.98
8.4.50.0120.00918.43
8.4.40.0160.00318.66
8.4.30.0060.01318.68
8.4.20.0160.00319.27
8.4.10.0100.01019.38
8.3.260.0140.00516.35
8.3.250.0120.00618.69
8.3.240.0110.00816.66
8.3.230.0100.00916.21
8.3.220.0070.00316.72
8.3.210.0130.00616.58
8.3.200.0060.00316.74
8.3.190.0100.00916.94
8.3.180.0080.01317.38
8.3.170.0040.00718.74
8.3.160.0090.00617.11
8.3.150.0130.00617.01
8.3.140.0070.00716.81
8.3.130.0080.00018.34
8.3.120.0000.00818.75
8.3.110.0070.01120.94
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0070.00318.31
8.3.70.0150.00016.25
8.3.60.0220.00916.54
8.3.50.0120.00716.52
8.3.40.0330.00917.13
8.3.30.0290.01217.19
8.3.20.0290.00718.06
8.3.10.0260.00817.13
8.3.00.0250.00817.19
8.2.290.0070.00220.66
8.2.280.0020.00618.21
8.2.270.0150.00316.82
8.2.260.0110.00718.27
8.2.250.0100.01016.62
8.2.240.0100.00018.98
8.2.230.0060.00322.58
8.2.220.0000.00837.54
8.2.210.0030.00526.77
8.2.200.0070.00316.50
8.2.190.0030.01016.58
8.2.180.0190.01616.46
8.2.170.0320.00517.54
8.2.160.0290.00917.25
8.2.150.0270.01017.13
8.2.140.0320.00617.05
8.2.130.0260.01117.19
8.2.120.0320.00518.23
8.2.110.0230.01317.44
8.2.100.0230.01217.13
8.2.90.0270.01017.19
8.2.80.0270.00917.19
8.2.70.0250.01217.12
8.2.60.0330.00517.23
8.2.50.0240.01117.25
8.2.40.0270.00617.96
8.2.30.0210.01217.00
8.2.20.0280.00717.19
8.2.10.0310.00317.38
8.2.00.0270.00917.24
8.1.330.0130.00721.91
8.1.320.0140.00615.99
8.1.310.0000.00818.22
8.1.300.0080.01217.75
8.1.290.0090.00018.88
8.1.280.0230.01216.32
8.1.270.0330.00617.12
8.1.260.0260.01016.99
8.1.250.0340.00316.88
8.1.240.0260.00817.06
8.1.230.0190.01318.13
8.1.220.0220.01117.13
8.1.210.0270.00617.04
8.1.200.0200.01117.00
8.1.190.0300.00117.06
8.1.180.0300.00316.88
8.1.170.0220.01217.85
8.1.160.0240.00816.93
8.1.150.0270.00816.88
8.1.140.0250.01016.93
8.1.130.0300.00816.94
8.1.120.0320.00517.17
8.1.110.0240.01317.06
8.1.100.0270.00817.13
8.1.90.0290.00617.06
8.1.80.0270.00517.25
8.1.70.0260.00716.88
8.1.60.0280.00717.19
8.1.50.0280.01116.98
8.1.40.0270.01116.87
8.1.30.0280.00717.06
8.1.20.0290.00517.13
8.1.10.0350.00416.94
8.1.00.0280.00716.92
5.6.400.0090.00916.32

preferences:
51.08 ms | 403 KiB | 5 Q