3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct( private Closure $callback ) {} public function show(): void { call_user_func($this->callback); } } new A(function() { echo 'Hello world'; })->show();

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.30.0420.00617.32
8.4.20.0370.01217.43
8.4.10.0400.01017.48
8.3.160.0310.00616.36
8.3.150.0270.00616.63
8.3.140.0330.00616.46
8.3.130.0310.00516.55
8.3.120.0300.01116.74
8.3.110.0310.01016.54
8.3.100.0390.00716.51
8.3.90.0380.00516.59
8.3.80.0310.00716.54
8.3.70.0260.01216.78
8.3.60.0270.00616.66
8.3.50.0260.00616.70
8.3.40.0220.00517.50
8.3.30.0250.00817.42
8.3.20.0310.01017.51
8.3.10.0260.00617.55
8.3.00.0140.00618.41
8.2.270.0320.00516.53
8.2.260.0360.00816.39
8.2.250.0280.00716.60
8.2.240.0250.00616.53
8.2.230.0240.00316.59
8.2.220.0260.00816.45
8.2.210.0250.00916.40
8.2.200.0260.01116.35
8.2.190.0300.00816.38
8.2.180.0310.00616.43
8.2.170.0320.00617.75
8.2.160.0330.00817.57
8.2.150.0320.00517.31
8.2.140.0340.00717.13
8.2.130.0330.00917.28
8.2.120.0300.01617.24
8.2.110.0330.00917.32
8.2.100.0310.00617.41
8.2.90.0320.00617.42
8.2.80.0310.00717.47
8.2.70.0300.00817.09
8.2.60.0310.00817.17
8.2.50.0280.00917.39
8.2.40.0230.01217.43
8.2.30.0270.00817.18
8.2.20.0320.00817.44
8.2.10.0250.01017.19
8.2.00.0240.00917.24

preferences:
136.66 ms | 942 KiB | 7 Q