3v4l.org

run code in 500+ PHP versions simultaneously
<?php class C { private function f() { echo "hello"; } public function fn(): callable { return [$this, 'f']; } } $c = new C(); $f = $c->fn(); $f();

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.30.0330.00816.68
8.5.20.0300.00916.78
8.5.10.0340.00716.72
8.5.00.0360.00716.51
8.4.180.0380.01119.58
8.4.170.0260.01120.54
8.4.160.0280.01219.76
8.4.150.0280.00719.56
8.4.140.0370.01017.72
8.4.130.0330.00817.57
8.4.120.0400.00717.87
8.4.110.0370.01118.00
8.4.100.0380.00618.16
8.4.90.0400.00717.84
8.4.80.0390.00817.97
8.4.70.0360.01017.98
8.4.60.0400.00618.13
8.4.50.0320.01217.94
8.4.40.0400.00917.74
8.4.30.0390.01017.86
8.4.20.0280.00817.88
8.4.10.0330.00717.80
8.3.300.0280.00818.26
8.3.290.0430.00718.31
8.3.280.0340.01018.33
8.3.270.0330.00916.66
8.3.260.0260.00916.65
8.3.250.0300.00516.56
8.3.240.0230.00616.67
8.3.230.0260.00416.59
8.3.220.0300.00416.50
8.3.210.0260.00716.70
8.3.200.0220.00516.65
8.3.190.0270.00716.65
8.3.180.0380.00516.56
8.3.170.0360.01416.51
8.3.160.0290.00616.77
8.3.150.0180.00216.80
8.3.140.0160.00416.81
8.3.130.0290.00916.73
8.3.120.0310.00716.75
8.3.110.0200.00816.72
8.3.100.0330.00616.70
8.3.90.0400.00716.66
8.3.80.0370.00816.66
8.3.70.0240.00716.53
8.3.60.0280.00416.66
8.3.50.0270.00516.72
8.3.40.0260.00617.99
8.3.30.0240.00917.87
8.3.20.0290.00917.93
8.3.10.0270.00817.98
8.3.00.0220.00917.82

preferences:
48.68 ms | 709 KiB | 5 Q