3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Test { public $cb; public function __construct() { // $this->cb is callable here $this->cb = [$this, 'method']; var_dump(is_callable($this->cb)); } private function method() {} } $obj = new Test; // $obj->cb is NOT callable here var_dump(is_callable($obj->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.70.0070.00216.66
8.5.60.0050.01216.98
8.5.50.0110.00716.82
8.5.30.0050.01221.12
8.5.20.0130.00420.27
8.5.10.0100.00816.66
8.5.00.0140.00819.87
8.4.220.0130.00519.49
8.4.210.0130.00919.54
8.4.180.0140.00919.60
8.4.170.0120.01020.30
8.4.160.0120.01021.34
8.4.150.0090.00516.69
8.4.140.0100.01317.56
8.4.130.0120.00817.74
8.4.120.0110.00524.18
8.4.110.0120.00822.58
8.4.100.0050.00418.73
8.4.90.0160.00418.90
8.4.80.0050.00418.89
8.4.70.0120.00917.95
8.4.60.0100.00718.97
8.4.50.0060.00918.58
8.4.40.0030.00617.78
8.4.30.0120.00618.50
8.4.20.0150.00319.70
8.4.10.0080.00019.32
8.3.310.0090.00818.44
8.3.300.0100.01018.32
8.3.290.0120.01020.80
8.3.280.0130.01018.27
8.3.270.0110.00816.39
8.3.260.0100.00616.38
8.3.250.0090.01018.80
8.3.240.0130.00618.72
8.3.230.0100.00416.73
8.3.220.0110.00820.60
8.3.210.0080.01016.50
8.3.200.0060.00216.50
8.3.190.0080.01017.24
8.3.180.0120.00717.18
8.3.170.0070.01118.86
8.3.160.0090.00917.06
8.3.150.0160.00318.88
8.3.140.0090.00017.32
8.3.130.0000.00818.35
8.3.120.0030.00618.85
8.3.110.0030.00620.94
8.3.100.0040.00724.06
8.3.90.0070.00426.77
8.3.80.0040.00417.97
8.3.70.0160.00318.31
8.3.60.0140.00716.83
8.3.50.0130.01016.47
8.3.40.0110.00721.34
8.3.30.0140.00420.96
8.3.20.0050.01222.62
8.3.10.0070.00922.44
8.3.00.0120.00420.88
8.2.310.0120.00717.91
8.2.300.0140.00622.17
8.2.290.0130.00620.59
8.2.280.0090.01018.40
8.2.270.0140.00418.94
8.2.260.0080.01118.61
8.2.250.0000.00818.26
8.2.240.0130.00617.21
8.2.230.0030.00622.58
8.2.220.0140.00437.54
8.2.210.0000.00826.77
8.2.200.0060.00316.75
8.2.190.0100.01016.58
8.2.180.0140.00717.00
8.2.170.0040.01220.96
8.2.160.0060.00921.53
8.2.150.0130.00520.96
8.2.140.0070.00721.75
8.2.130.0060.00921.67
8.2.120.0090.00521.04
8.2.110.0130.00421.11
8.2.100.0050.01221.12
8.2.90.0070.01020.83
8.2.80.0120.00521.12
8.2.70.0030.01420.89
8.2.60.0110.00620.88
8.2.50.0090.00721.08
8.2.40.0140.00420.81
8.2.30.0120.00520.78
8.2.20.0050.01220.92
8.2.10.0110.00620.75
8.2.00.0070.01120.66
8.1.340.0120.00917.63
8.1.330.0110.00821.72
8.1.320.0110.00915.88
8.1.310.0030.00518.39
8.1.300.0030.00617.69
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0130.00522.50
8.1.260.0140.00522.35
8.1.250.0130.00422.58
8.1.240.0060.00920.77
8.1.230.0080.00820.64
8.1.220.0110.00420.84
8.1.210.0100.00620.61
8.1.200.0100.00720.80
8.1.190.0110.01020.79
8.1.180.0100.01020.69
8.1.170.0060.00820.91
8.1.160.0130.00520.81
8.1.150.0070.00720.85
8.1.140.0130.00520.78
8.1.130.0150.00020.82
8.1.120.0080.00720.79
8.1.110.0090.00620.75
8.1.100.0100.00521.23
8.1.90.0110.00720.76
8.1.80.0070.00721.37
8.1.70.0100.00520.81
8.1.60.0050.01420.72
8.1.50.0140.00520.78
8.1.40.0080.00720.81
8.1.30.0080.00820.96
8.1.20.0120.00721.40
8.1.10.0110.00920.76
8.1.00.0120.00820.79

preferences:
49.83 ms | 1009 KiB | 5 Q