3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @param non-empty-string $message */ function write(string $message, float|int|string ...$args) { $args = array_values($args); printf($message, ...$args); } write("Hello, %s! Hope you are having a nice %s!", "X", args: "weekend");

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.5.00.0100.01519.71
8.4.150.0020.00114.05
8.4.140.0140.00717.36
8.4.130.0130.00717.85
8.4.120.0160.00420.70
8.4.110.0130.00622.27
8.4.100.0100.01017.66
8.4.90.0140.00618.54
8.4.80.0160.00317.50
8.4.70.0330.01117.72
8.4.60.0300.00917.41
8.4.50.0180.00317.70
8.4.40.0230.00617.48
8.4.30.0150.00617.30
8.4.20.0170.00517.61
8.4.10.0170.00517.27
8.3.280.0110.00918.38
8.3.270.0130.00616.60
8.3.260.0110.00816.40
8.3.250.0040.00618.61
8.3.240.0050.00516.50
8.3.230.0120.00916.59
8.3.220.0100.00717.06
8.3.210.0030.00518.41
8.3.200.0130.00516.73
8.3.190.0180.00216.30
8.3.180.0170.00216.46
8.3.170.0180.00316.20
8.3.160.0150.00616.20
8.3.150.0170.00316.34
8.3.140.0160.00316.43
8.3.130.0150.00416.42
8.3.120.0160.00316.32
8.3.110.0140.00516.43
8.3.100.0160.00516.36
8.3.90.0160.00516.30
8.3.80.0160.00416.20
8.3.70.0220.00416.20
8.3.60.0170.00616.20
8.3.50.0150.00516.44
8.3.40.0190.00117.34
8.3.30.0120.00317.24
8.3.20.0150.00117.18
8.3.10.0140.00817.22
8.3.00.0160.00617.33
8.2.290.0120.00720.47
8.2.280.0160.00416.40
8.2.270.0220.00216.52
8.2.260.0260.00516.39
8.2.250.0210.00318.25
8.2.240.0140.00416.29
8.2.230.0130.00316.37
8.2.220.0150.00318.12
8.2.210.0140.00216.58
8.2.200.0130.00318.09
8.2.190.0140.00416.57
8.2.180.0130.00316.54
8.2.170.0150.00317.78
8.2.160.0120.00517.46
8.2.150.0140.00416.99
8.2.140.0160.00317.24
8.2.130.0150.00317.24
8.2.120.0130.00417.51
8.2.110.0140.00517.39
8.2.100.0140.00419.19
8.2.90.0140.00417.38
8.2.80.0160.00517.28
8.2.70.0250.00617.07
8.2.60.0150.00417.27
8.2.50.0130.00417.25
8.2.40.0140.00317.45
8.2.30.0120.00517.14
8.2.20.0130.00417.32
8.2.10.0120.00417.25
8.2.00.0130.00417.57

preferences:
54 ms | 403 KiB | 5 Q