3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fullName = 'Karl-Theodor Maria Nikolaus Johann Jacob Philipp Franz Joseph Sylvester Buhl-Freiherr von und zu Guttenberg'; //fullName = 'Philipp Christian Clown'; $nameParts = explode(' ', $fullName); if (count($nameParts) === 1) { return $fullName; } $firstName = $nameParts[0]; $lastInitial = mb_substr($nameParts[1], 0, 1); echo "$firstName $lastInitial.";

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.140.0300.00717.64
8.4.130.0380.01217.75
8.4.120.0290.00817.40
8.4.110.0370.01017.55
8.4.100.0390.00817.59
8.4.90.0420.01117.51
8.4.80.0260.01717.43
8.4.70.0520.01217.55
8.4.60.0200.00517.75
8.4.50.0300.00717.57
8.4.40.0170.00517.25
8.4.30.0170.00517.24
8.4.20.0200.00717.45
8.4.10.0170.00617.27
8.3.270.0190.00116.21
8.3.260.0180.00316.75
8.3.250.0200.00316.46
8.3.240.0150.00416.50
8.3.230.0240.00816.66
8.3.220.0150.00516.27
8.3.210.0170.00616.74
8.3.200.0200.00316.42
8.3.190.0160.00616.49
8.3.180.0180.00416.39
8.3.170.0150.00616.63
8.3.160.0160.00516.52
8.3.150.0200.00416.53
8.3.140.0200.00616.80
8.3.130.0160.00216.36
8.3.120.0160.00516.65
8.3.110.0180.00416.54
8.3.100.0170.00416.18
8.3.90.0220.00616.77
8.3.80.0140.00816.48
8.3.70.0200.00416.61
8.3.60.0210.00316.02
8.3.50.0150.00415.91
8.3.40.0230.00417.39
8.3.30.0100.00717.09
8.3.20.0190.00417.40
8.3.10.0150.00617.49
8.3.00.0140.00317.34
8.2.290.0140.00716.31
8.2.280.0130.00616.39
8.2.270.0110.00616.21
8.2.260.0250.00516.45
8.2.250.0190.00616.10
8.2.240.0220.00516.47
8.2.230.0180.00916.42
8.2.220.0180.00216.34
8.2.210.0270.00416.48
8.2.200.0070.00316.69
8.2.190.0070.00416.64
8.2.180.0040.00516.67
8.2.170.0070.00217.81
8.2.160.0030.00917.73
8.2.150.0070.00717.41
8.2.140.0110.00417.36
8.2.130.0080.00417.44
8.2.120.0050.00417.64
8.2.110.0050.00417.37
8.2.100.0150.00417.66
8.2.90.0160.00617.44
8.2.80.0200.00117.41
8.2.70.0140.00317.42
8.2.60.0190.00717.45
8.2.50.0160.00617.23
8.2.40.0280.00717.53
8.2.30.0110.00517.38
8.2.20.0240.00817.44
8.2.10.0200.00717.32
8.2.00.0140.00617.50

preferences:
28.95 ms | 403 KiB | 5 Q