3v4l.org

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

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.140.0040.00416.75
8.3.130.0030.00618.73
8.3.120.0090.00018.75
8.3.110.0040.00420.94
8.3.100.0060.00324.06
8.3.90.0120.00326.77
8.3.80.0030.00618.27
8.3.70.0060.01218.45
8.3.60.0120.00318.31
8.3.50.0050.01316.58
8.3.40.0070.00718.92
8.3.30.0040.01118.84
8.3.20.0030.00518.90
8.3.10.0040.00423.57
8.3.00.0040.00421.83
8.2.250.0180.00316.87
8.2.240.0100.00319.08
8.2.230.0050.00522.58
8.2.220.0040.00437.54
8.2.210.0180.00026.77
8.2.200.0040.00816.75
8.2.190.0040.01116.82
8.2.180.0140.00316.50
8.2.170.0070.00722.96
8.2.160.0110.00419.04
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0060.00319.19
8.2.120.0050.00326.35
8.2.110.0030.00720.87
8.2.100.0090.00317.78
8.2.90.0050.00319.48
8.2.80.0040.00418.22
8.2.70.0040.00417.88
8.2.60.0000.00817.63
8.2.50.0080.00018.22
8.2.40.0040.00420.59
8.2.30.0080.00019.21
8.2.20.0040.00418.04
8.2.10.0000.00717.92
8.2.00.0040.00418.16
8.1.300.0060.01218.73
8.1.290.0100.00030.84
8.1.280.0070.00725.92
8.1.270.0000.00722.14
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.97
8.1.230.0110.00020.97
8.1.220.0000.00817.74
8.1.210.0050.00320.28
8.1.200.0000.00817.36
8.1.190.0050.00317.35
8.1.180.0060.00318.10
8.1.170.0060.00318.70
8.1.160.0050.00318.80
8.1.150.0000.00818.94
8.1.140.0070.00019.07
8.1.130.0030.00317.44
8.1.120.0040.00417.50
8.1.110.0000.00717.36
8.1.100.0040.00417.40
8.1.90.0030.00317.42
8.1.80.0080.00017.34
8.1.70.0070.00017.50
8.1.60.0000.00817.46
8.1.50.0050.00317.52
8.1.40.0040.00617.52
8.1.30.0030.00717.55
8.1.20.0040.00417.60
8.1.10.0100.00417.56
8.1.00.0120.00417.51
8.0.300.0000.00720.06
8.0.290.0080.00016.88
8.0.280.0040.00418.45
8.0.270.0000.00717.17
8.0.260.0000.00716.95
8.0.250.0000.00717.01
8.0.240.0040.00417.00
8.0.230.0000.00717.00
8.0.220.0030.00316.91
8.0.210.0000.00716.95
8.0.200.0040.00417.03
8.0.190.0040.00417.02
8.0.180.0130.00116.94
8.0.170.0100.00516.97
8.0.160.0060.00416.84
8.0.150.0030.00716.68
8.0.140.0040.00616.90
8.0.130.0030.00515.15
8.0.120.0070.00316.77
8.0.110.0070.00316.86
8.0.100.0090.00416.87
8.0.90.0110.00316.96
8.0.80.0100.00916.95
8.0.70.0110.00416.82
8.0.60.0070.00716.96
8.0.50.0110.00516.81
8.0.30.0180.00417.05
8.0.20.0110.00717.33
8.0.10.0110.00317.06
8.0.00.0140.00316.76
7.4.330.0020.00216.59
7.4.320.0000.00616.56
7.4.300.0030.00316.41
7.4.290.0060.00516.52
7.4.280.0100.00016.52
7.4.270.0070.00416.44
7.4.260.0050.00516.44
7.4.250.0050.00716.47
7.4.240.0060.00516.59
7.4.230.0120.00316.35
7.4.220.0110.00216.59
7.4.210.0070.00816.48
7.4.200.0060.00616.51
7.4.190.0070.01016.56
7.4.180.0150.00516.46
7.4.160.0100.00616.48
7.4.150.0110.00516.79
7.4.140.0090.00917.56
7.4.130.0130.00216.52
7.4.120.0090.01116.52
7.4.110.0150.00416.38
7.4.100.0150.00616.47
7.4.90.0070.01016.54
7.4.80.0060.00817.96
7.4.70.0060.00816.54
7.4.60.0090.00716.51
7.4.50.0110.00516.31
7.4.40.0130.00516.42
7.4.30.0130.00716.45
7.4.20.0190.00016.31
7.4.10.0100.00816.53
7.4.00.0110.00515.80
7.3.330.0110.00114.77
7.3.320.0070.00514.83
7.3.310.0100.00316.35
7.3.300.0130.00016.25
7.3.290.0060.00716.31
7.3.280.0110.00716.28
7.3.270.0130.00716.82
7.3.260.0130.00616.36
7.3.250.0110.00816.47
7.3.240.0150.00516.46
7.3.230.0110.01016.45
7.3.220.0190.00016.27
7.3.210.0070.01216.26
7.3.200.0100.01116.35
7.3.190.0110.00816.26
7.3.180.0110.00716.36
7.3.170.0160.00516.38
7.3.160.0110.00616.36
7.3.150.0150.00416.24
7.3.140.0160.00316.33
7.3.130.0150.00316.36
7.3.120.0150.00416.45
7.3.110.0110.00816.11
7.3.100.0110.00716.23
7.3.90.0190.00316.59
7.3.80.0110.00816.13
7.3.70.0150.00416.33
7.3.60.0180.00016.43
7.3.50.0110.00716.39
7.3.40.0140.00416.42
7.3.30.0150.00416.19
7.3.20.0120.00618.28
7.3.10.0120.00617.42
7.3.00.0100.00617.34
7.2.340.0130.00516.34
7.2.330.0090.01016.49
7.2.320.0130.00416.49
7.2.310.0100.00816.57
7.2.300.0140.00616.52
7.2.290.0130.00516.37
7.2.280.0130.00616.40
7.2.270.0090.00916.38
7.2.260.0090.00916.38
7.2.250.0150.00316.41
7.2.240.0150.00416.24
7.2.230.0150.00516.36
7.2.220.0140.00516.34
7.2.210.0150.00416.37
7.2.200.0140.00716.39
7.2.190.0150.00416.32
7.2.180.0190.00016.54
7.2.170.0140.00516.45
7.2.160.0120.00616.43
7.2.150.0120.00818.39
7.2.140.0190.00018.27
7.2.130.0110.00417.64
7.2.120.0100.00617.80
7.2.110.0070.00817.61
7.2.100.0100.00517.54
7.2.90.0130.00317.50
7.2.80.0060.01017.70
7.2.70.0140.00317.68
7.2.60.0030.01317.45
7.2.50.0130.00317.73
7.2.40.0100.00717.66
7.2.30.0130.00417.77
7.2.20.0130.00417.72
7.2.10.0100.00818.97
7.2.00.0120.00418.91
7.1.330.0150.00317.19
7.1.320.0130.00417.08
7.1.310.0140.00417.22
7.1.300.0120.00617.41
7.1.290.0120.00617.40
7.1.280.0100.00817.37
7.1.270.0120.00617.17
7.1.260.0130.00617.11
7.1.250.0110.00316.46
7.1.240.0140.00417.10
7.1.230.0150.00317.14
7.1.220.0120.00617.13
7.1.210.0130.00617.15
7.1.200.0090.00716.52
7.1.190.0140.00517.19
7.1.180.0130.00517.23
7.1.170.0140.00417.18
7.1.160.0150.00317.21
7.1.150.0180.00017.10
7.1.140.0150.00417.11
7.1.130.0040.01218.32
7.1.120.0050.01118.25
7.1.110.0110.00617.94
7.1.100.0050.01017.75
7.1.90.0070.00717.89
7.1.80.0140.00817.26
7.1.70.0110.01216.64
7.1.60.0210.01030.15
7.1.50.0160.00830.47
7.1.40.0240.00629.57
7.1.30.0200.00730.18
7.1.20.0220.00829.78
7.1.10.0060.01016.66
7.1.00.0150.00516.36
7.0.330.0090.00916.98
7.0.320.0130.00417.05
7.0.310.0100.00717.03
7.0.300.0120.00616.91
7.0.290.0140.00416.79
7.0.280.0180.00016.73
7.0.270.0180.00017.04
7.0.260.0150.00416.81
7.0.250.0160.00317.03
7.0.240.0180.00017.03
7.0.230.0130.00417.04
7.0.220.0150.00316.88
7.0.210.0110.00617.09
7.0.200.0180.00016.92
7.0.190.0190.00017.10
7.0.180.0120.00616.96
7.0.170.0150.00317.03
7.0.160.0240.00016.95
7.0.150.0190.00016.95
7.0.140.0160.00317.05
7.0.130.0160.00316.85
7.0.120.0150.00316.87
7.0.110.0120.00616.88
7.0.100.0190.00016.96
7.0.90.0110.00816.95
7.0.80.0190.00016.93
7.0.70.0150.00616.77
7.0.60.0160.00317.06
7.0.50.0190.00016.92
7.0.40.0180.00017.07
7.0.30.0190.00016.93
7.0.20.0180.00416.93
7.0.10.0190.00016.87
7.0.00.0130.00617.03
5.6.400.0180.00015.66
5.6.390.0150.00315.50
5.6.380.0130.00415.56
5.6.370.0130.00315.71
5.6.360.0140.00315.41
5.6.350.0120.00415.68
5.6.340.0130.00415.68
5.6.330.0120.00415.48
5.6.320.0140.00315.46
5.6.310.0100.00715.72
5.6.300.0140.00215.41
5.6.290.0160.00015.70
5.6.280.0180.00015.68
5.6.270.0180.00015.55
5.6.260.0120.00415.46
5.6.250.0170.00015.66
5.6.240.0160.00015.66
5.6.230.0120.00415.75
5.6.220.0130.00315.77
5.6.210.0150.00415.57
5.6.200.0150.00415.77
5.6.190.0170.00015.63
5.6.180.0090.00915.54
5.6.170.0160.00015.77
5.6.160.0130.00315.59
5.6.150.0120.00415.78
5.6.140.0100.00715.50
5.6.130.0130.00315.56
5.6.120.0160.00015.48
5.6.110.0100.00515.63
5.6.100.0140.00315.52
5.6.90.0140.00315.57
5.6.80.0050.01015.58
5.6.70.0080.00815.63
5.6.60.0160.00015.52
5.6.50.0110.00515.51
5.6.40.0080.00815.56
5.6.30.0110.00415.56
5.6.20.0080.00815.50
5.6.10.0110.00615.58
5.6.00.0100.00715.49

preferences:
61.75 ms | 403 KiB | 5 Q