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 = $a->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.0060.01518.43
8.3.50.0070.01116.17
8.3.40.0110.00718.79
8.3.30.0070.00718.70
8.3.20.0080.00018.85
8.3.10.0040.00423.66
8.3.00.0030.00717.50
8.2.180.0200.00318.34
8.2.170.0110.00722.96
8.2.160.0140.00019.22
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00619.33
8.2.120.0040.00426.35
8.2.110.0080.00022.25
8.2.100.0090.00317.91
8.2.90.0040.00418.03
8.2.80.0050.00319.02
8.2.70.0040.00418.01
8.2.60.0040.00418.03
8.2.50.0040.00418.22
8.2.40.0080.00020.50
8.2.30.0050.00319.17
8.2.20.0050.00318.07
8.2.10.0050.00218.14
8.2.00.0000.00718.11
8.1.280.0100.00325.92
8.1.270.0040.00419.71
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.15
8.1.230.0090.00320.88
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0080.00018.43
8.1.160.0070.00018.80
8.1.150.0000.00718.90
8.1.140.0040.00419.07
8.1.130.0000.00718.98
8.1.120.0000.00717.38
8.1.110.0000.00717.36
8.1.100.0000.00817.47
8.1.90.0070.00017.49
8.1.80.0030.00517.42
8.1.70.0000.00717.52
8.1.60.0000.00817.64
8.1.50.0040.00417.41
8.1.40.0030.00617.52
8.1.30.0050.00317.66
8.1.20.0040.00417.59
8.1.10.0000.00717.51
8.1.00.0030.00617.34
8.0.300.0000.00719.98
8.0.290.0040.00416.75
8.0.280.0030.00318.49
8.0.270.0070.00017.19
8.0.260.0030.00317.30
8.0.250.0030.00316.96
8.0.240.0080.00016.92
8.0.230.0060.00017.07
8.0.220.0040.00316.86
8.0.210.0040.00416.95
8.0.200.0050.00216.91
8.0.190.0040.00416.98
8.0.180.0040.00416.97
8.0.170.0060.00316.96
8.0.160.0040.00416.95
8.0.150.0000.00816.98
8.0.140.0000.00716.88
8.0.130.0050.00013.34
8.0.120.0050.00316.88
8.0.110.0000.00716.87
8.0.100.0070.00016.77
8.0.90.0070.00016.79
8.0.80.0060.00916.92
8.0.70.0000.00716.84
8.0.60.0000.00716.91
8.0.50.0040.00416.78
8.0.30.0120.00417.10
8.0.20.0130.00717.40
8.0.10.0030.00316.91
8.0.00.0170.00316.87
7.4.330.0050.00016.70
7.4.320.0030.00316.53
7.4.300.0030.00316.59
7.4.290.0000.00816.59
7.4.280.0000.00716.64
7.4.270.0000.00716.57
7.4.260.0030.00416.46
7.4.250.0000.00716.55
7.4.240.0000.00716.60
7.4.230.0040.00416.30
7.4.220.0000.00816.59
7.4.210.0060.01016.56
7.4.200.0070.00016.49
7.4.160.0080.00816.51
7.4.150.0160.00617.40
7.4.140.0090.01117.86
7.4.130.0110.00616.54
7.4.120.0110.00916.43
7.4.110.0100.00716.67
7.4.100.0100.01316.71
7.4.90.0100.00716.58
7.4.80.0140.00319.39
7.4.70.0120.00616.56
7.4.60.0000.02016.38
7.4.50.0070.00716.46
7.4.40.0070.01016.49
7.4.10.0060.01315.09
7.4.00.0110.00515.02
7.3.330.0030.00313.27
7.3.320.0030.00313.35
7.3.310.0070.00016.23
7.3.300.0000.00716.45
7.3.290.0000.00716.36
7.3.280.0040.01116.36
7.3.270.0100.00717.40
7.3.260.0090.00916.39
7.3.250.0100.01016.56
7.3.240.0110.00716.36
7.3.230.0100.00716.48
7.3.210.0060.01016.39
7.3.200.0060.01016.49
7.3.190.0080.00816.36
7.3.180.0060.01016.38
7.3.170.0200.00316.43
7.3.160.0030.01716.47
7.3.130.0110.00714.86
7.3.120.0080.00714.84
7.3.110.0020.01314.89
7.3.100.0050.00914.79
7.3.90.0070.00814.75
7.3.80.0080.00314.91
7.3.70.0070.00814.76
7.3.60.0060.01014.84
7.3.50.0020.01414.69
7.3.40.0020.01214.74
7.3.30.0060.00814.68
7.3.20.0100.00716.65
7.3.10.0050.00616.52
7.3.00.0070.00516.33
7.2.330.0120.00616.62
7.2.320.0130.00716.25
7.2.310.0080.00816.85
7.2.300.0030.01416.57
7.2.290.0060.00916.52
7.2.260.0100.00714.95
7.2.250.0050.01014.98
7.2.240.0070.01015.19
7.2.230.0040.01115.14
7.2.220.0070.00914.98
7.2.210.0070.00415.11
7.2.200.0050.00715.00
7.2.190.0050.00914.98
7.2.180.0070.00814.96
7.2.170.0060.00814.99
7.2.160.0050.00615.01
7.2.150.0040.01016.75
7.2.140.0070.00716.94
7.2.130.0060.00816.81
7.2.120.0140.00016.82
7.2.110.0110.00516.82
7.2.100.0050.01116.94
7.2.90.0050.01116.78
7.2.80.0060.00816.86
7.2.70.0090.00416.79
7.2.60.0040.01016.96
7.2.50.0050.00716.88
7.2.40.0050.00716.88
7.2.30.0090.00616.86
7.2.20.0040.00816.82
7.2.10.0110.01217.29
7.2.00.0120.01417.22
7.1.330.0070.00415.63
7.1.320.0090.00715.79
7.1.310.0070.00715.68
7.1.300.0100.00315.73
7.1.290.0040.00715.65
7.1.280.0050.00915.77
7.1.270.0050.00915.81
7.1.260.0040.00915.69
7.1.250.0050.00815.59
7.1.240.0000.01315.91
7.1.230.0070.00415.87
7.1.220.0040.00715.82
7.1.210.0000.00815.51
7.1.200.0070.00115.68
7.1.190.0070.01015.47
7.1.180.0100.00315.71
7.1.170.0040.01115.73
7.1.160.0080.00815.74
7.1.150.0070.00715.69
7.1.140.0030.00915.89
7.1.130.0180.00916.25
7.1.120.0170.01116.24
7.1.110.0170.00816.00
7.1.100.0140.01015.81
7.1.90.0160.00915.89
7.1.80.0190.00715.89
7.1.70.0160.00715.45
7.1.60.0240.00924.41
7.1.50.0290.01124.12
7.1.40.0200.01124.02
7.1.30.0260.01324.21
7.1.20.0160.01124.11
7.1.10.0150.00915.24
7.1.00.0120.01015.16
7.0.330.0040.01115.15
7.0.320.0080.00615.34
7.0.310.0080.00015.21
7.0.300.0060.00915.35
7.0.290.0030.01315.55
7.0.280.0030.01015.33
7.0.270.0020.01015.41
7.0.260.0060.00715.38
7.0.250.0100.00715.15
7.0.240.0000.01515.32
7.0.230.0070.00715.39
7.0.220.0030.00615.55
7.0.210.0070.00715.39
7.0.200.0000.00915.40
7.0.190.0090.00415.39
7.0.180.0000.01215.43
7.0.170.0060.01215.28
7.0.160.0070.00315.44
7.0.150.0070.00415.22
7.0.140.0060.00615.48
7.0.130.0070.01015.41
7.0.120.0000.01615.47
7.0.110.0030.00915.16
7.0.100.0030.00615.25
7.0.90.0130.00415.53
7.0.80.0070.01115.23
7.0.70.0030.00515.36
7.0.60.0120.00415.36
7.0.50.0060.00315.22
7.0.40.0140.00013.38
7.0.30.0000.01313.37
7.0.20.0090.00913.26
7.0.10.0060.00613.25
7.0.00.0060.01013.55
5.6.400.0060.00314.36
5.6.390.0030.01014.19
5.6.380.0070.00714.32
5.6.370.0060.00914.03
5.6.360.0060.00914.38
5.6.350.0100.00614.48
5.6.340.0060.00314.08
5.6.330.0080.00314.12
5.6.320.0110.00013.80
5.6.310.0070.00714.14
5.6.300.0070.00714.30
5.6.290.0090.00413.99
5.6.280.0000.01514.08
5.6.270.0080.01114.18
5.6.260.0000.01514.25
5.6.250.0080.00614.11
5.6.240.0040.01114.22
5.6.230.0060.00614.14
5.6.220.0090.00614.13
5.6.210.0070.00313.98
5.6.200.0060.00613.83
5.6.190.0040.00814.17
5.6.180.0100.00314.02
5.6.170.0120.00614.11
5.6.160.0040.01214.06
5.6.150.0030.01414.03
5.6.140.0000.01414.45
5.6.130.0030.00714.16
5.6.120.0070.00714.04
5.6.110.0040.01114.30
5.6.100.0030.01314.04
5.6.90.0070.01014.23
5.6.80.0150.00414.02
5.6.70.0000.01514.26
5.6.60.0070.01113.98
5.6.50.0070.01014.11
5.6.40.0120.00314.13
5.6.30.0030.00614.11
5.6.20.0120.00014.29
5.6.10.0040.01114.20
5.6.00.0030.01214.08

preferences:
60.31 ms | 401 KiB | 5 Q