3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Test { public function __construct(callable $foo) { // $this->cb is callable here var_dump(is_callable($foo)); } private function method() {} } $cb = [Test::class, 'method']; $obj = new Test($cb); // $obj->cb is NOT callable here var_dump(is_callable($cb));

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.90.0080.00116.69
8.5.80.0040.00516.75
8.5.70.0030.00516.58
8.5.60.0080.00916.62
8.5.50.0100.00816.75
8.5.30.0100.00821.07
8.5.20.0110.00820.25
8.5.10.0100.00916.65
8.5.00.0140.00920.11
8.4.230.0160.00719.63
8.4.220.0140.00619.41
8.4.210.0130.00919.28
8.4.180.0160.00719.64
8.4.170.0140.00821.95
8.4.160.0120.01021.92
8.4.150.0070.00616.85
8.4.140.0130.00717.76
8.4.130.0120.00818.77
8.4.120.0140.00619.41
8.4.110.0050.00818.19
8.4.100.0100.01117.61
8.4.90.0090.00120.75
8.4.80.0120.00719.00
8.4.70.0080.01120.61
8.4.60.0130.00720.79
8.4.50.0120.00720.34
8.4.40.0060.01317.64
8.4.30.0070.01320.74
8.4.20.0130.00719.29
8.4.10.0070.00319.30
8.3.320.0140.00518.34
8.3.310.0110.00918.35
8.3.300.0140.01018.23
8.3.290.0110.00920.75
8.3.280.0160.00518.36
8.3.270.0140.00716.54
8.3.260.0150.00516.60
8.3.250.0110.00716.72
8.3.240.0090.00716.50
8.3.230.0110.00916.54
8.3.220.0100.01018.85
8.3.210.0050.00216.42
8.3.200.0040.00516.33
8.3.190.0110.01017.15
8.3.180.0120.00818.78
8.3.170.0050.00318.92
8.3.160.0120.00616.96
8.3.150.0140.00417.11
8.3.140.0030.00517.25
8.3.130.0040.00418.30
8.3.120.0100.01018.68
8.3.110.0130.00020.94
8.3.100.0100.00024.06
8.3.90.0040.00426.77
8.3.80.0080.00418.30
8.3.70.0130.01018.56
8.3.60.0070.01518.36
8.3.50.0110.00416.72
8.3.40.0070.00723.70
8.3.30.0200.01022.96
8.3.20.0110.00722.96
8.3.10.0130.00722.96
8.3.00.0130.00822.96
8.2.320.0050.00718.01
8.2.310.0110.00817.79
8.2.300.0100.01022.14
8.2.290.0140.00516.56
8.2.280.0110.00518.52
8.2.270.0090.00918.69
8.2.260.0070.01118.18
8.2.250.0150.00618.52
8.2.240.0000.01616.91
8.2.230.0030.00522.58
8.2.220.0070.01037.54
8.2.210.0050.00526.77
8.2.200.0060.00316.38
8.2.190.0100.00716.58
8.2.180.0140.00416.38
8.2.170.0060.00922.96
8.2.160.0250.00422.96
8.2.150.0130.00722.96
8.2.140.0170.00022.96
8.2.130.0110.00322.96
8.2.120.0110.00722.96
8.2.110.0170.00022.96
8.2.100.0110.00722.96
8.2.90.0220.00622.96
8.2.80.0150.00622.96
8.2.70.0190.00622.96
8.2.60.0170.00922.96
8.2.50.0230.00422.96
8.2.40.0210.00922.96
8.2.30.0200.00322.96
8.2.20.0210.00322.96
8.2.10.0120.01222.96
8.2.00.0210.00322.96
8.1.340.0120.00919.54
8.1.330.0070.00416.31
8.1.320.0110.00817.89
8.1.310.0040.00418.28
8.1.300.0030.00617.85
8.1.290.0060.00330.84
8.1.280.0100.01025.92
8.1.270.0100.00722.96
8.1.260.0100.00722.96
8.1.250.0070.00722.96
8.1.240.0150.00922.96
8.1.230.0180.00422.96
8.1.220.0170.00322.96
8.1.210.0230.00022.96
8.1.200.0160.00422.96
8.1.190.0130.01022.96
8.1.180.0200.00422.96
8.1.170.0190.00522.96
8.1.160.0110.01122.96
8.1.150.0180.00322.96
8.1.140.0190.00322.96
8.1.130.0120.01222.96
8.1.120.0160.00622.96
8.1.110.0180.00722.96
8.1.100.0180.00322.96
8.1.90.0100.01322.96
8.1.80.0190.00622.96
8.1.70.0200.00022.96
8.1.60.0220.00322.96
8.1.50.0120.01222.96
8.1.40.0200.01022.96
8.1.30.0090.01422.96
8.1.20.0230.00322.96
8.1.10.0240.00322.96
8.1.00.0120.01522.96

preferences:
52.29 ms | 1029 KiB | 5 Q