3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function bar(){} function ba(): callable{ return [$this, "bar"]; } } $a = new A; $callable = $x->ba(); $callable();

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.3.60.0120.00318.54
8.3.50.0070.01116.49
8.3.40.0070.01118.85
8.3.30.0080.00818.67
8.3.20.0040.00418.78
8.3.10.0050.00323.66
8.3.00.0110.00017.38
8.2.180.0170.00318.66
8.2.170.0070.00722.96
8.2.160.0110.00319.09
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0070.00019.24
8.2.120.0050.00226.35
8.2.110.0030.00719.17
8.2.100.0090.00317.78
8.2.90.0050.00317.78
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0040.00417.80
8.2.50.0050.00318.10
8.2.40.0040.00420.60
8.2.30.0080.00019.17
8.2.20.0050.00317.85
8.2.10.0000.00717.90
8.2.00.0070.00018.12
8.1.280.0070.00725.92
8.1.270.0030.00520.02
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0090.00023.61
8.1.230.0040.00720.89
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0050.00517.35
8.1.190.0030.00617.00
8.1.180.0080.00018.10
8.1.170.0040.00418.46
8.1.160.0040.00418.70
8.1.150.0040.00418.76
8.1.140.0000.00718.95
8.1.130.0040.00419.00
8.1.120.0070.00017.29
8.1.110.0000.00717.33
8.1.100.0000.00917.29
8.1.90.0040.00417.25
8.1.80.0000.00817.32
8.1.70.0000.00717.29
8.1.60.0000.00817.41
8.1.50.0040.00417.49
8.1.40.0000.00817.56
8.1.30.0030.00517.66
8.1.20.0060.00317.61
8.1.10.0040.00417.53
8.1.00.0080.00017.52
8.0.300.0030.00619.85
8.0.290.0070.00016.63
8.0.280.0000.00718.44
8.0.270.0030.00317.20
8.0.260.0000.00617.37
8.0.250.0080.00016.91
8.0.240.0030.00616.89
8.0.230.0000.00716.94
8.0.220.0050.00316.77
8.0.210.0030.00416.89
8.0.200.0040.00416.89
8.0.190.0070.00016.94
8.0.180.0040.00416.89
8.0.170.0090.00016.77
8.0.160.0030.00316.99
8.0.150.0000.00816.85
8.0.140.0050.00316.83
8.0.130.0050.00013.38
8.0.120.0040.00416.89
8.0.110.0040.00416.95
8.0.100.0070.00016.83
8.0.90.0020.00516.85
8.0.80.0060.00916.88
8.0.70.0000.00716.95
8.0.60.0000.00717.00
8.0.50.0080.00016.70
8.0.30.0100.01116.99
8.0.20.0110.01017.40
8.0.10.0050.00216.89
8.0.00.0120.00816.84
7.4.330.0030.00315.55
7.4.320.0060.00016.58
7.4.300.0060.00016.58
7.4.290.0030.00316.59
7.4.280.0000.00816.51
7.4.270.0030.00316.55
7.4.260.0030.00316.51
7.4.250.0030.00316.37
7.4.240.0000.00716.55
7.4.230.0000.00716.30
7.4.220.0000.00716.50
7.4.210.0060.00916.57
7.4.200.0020.00516.60
7.4.160.0110.00716.52
7.4.150.0120.00617.40
7.4.140.0100.00917.86
7.4.130.0120.00616.80
7.4.120.0100.00916.59
7.4.110.0070.01016.39
7.4.100.0170.00716.45
7.4.90.0100.00716.50
7.4.80.0130.01019.39
7.4.70.0100.00716.58
7.4.60.0070.01716.50
7.4.50.0100.00316.65
7.4.40.0080.00816.73
7.4.00.0030.01014.98
7.3.330.0050.00013.11
7.3.320.0000.00513.26
7.3.310.0040.00416.20
7.3.300.0030.00316.26
7.3.290.0000.00716.40
7.3.280.0050.00916.33
7.3.270.0140.00917.40
7.3.260.0120.01316.50
7.3.250.0120.00716.45
7.3.240.0110.00716.42
7.3.230.0090.00916.20
7.3.210.0030.01316.44
7.3.200.0070.01316.36
7.3.190.0040.01116.30
7.3.180.0000.01516.48
7.3.170.0090.00916.42
7.3.160.0030.01316.21
7.2.330.0140.00316.65
7.2.320.0030.01416.48
7.2.310.0070.01116.61
7.2.300.0110.01116.32
7.2.290.0060.00916.70
7.2.60.0070.00716.78
7.2.10.0100.01317.76
7.2.00.0200.00317.88
7.1.200.0070.00715.76
7.1.130.0110.01116.81
7.1.120.0710.01016.47
7.1.110.0250.00716.14
7.1.100.0230.01016.13
7.1.90.0420.00416.19
7.1.80.0450.00915.90
7.1.70.0300.01215.24
7.1.60.0420.01133.14
7.1.50.0460.01132.57
7.1.40.0510.02032.17
7.1.30.0420.01932.36
7.1.20.0320.02332.66
7.1.10.0200.01414.70
7.1.00.0250.01614.67

preferences:
48.55 ms | 400 KiB | 5 Q