3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function foo() { echo 'foo'; } public function bar(callable $call) { $call(); } } $a = new A; // A::foo is not callable here, but will be when we get inside $a->bar( [$a, 'foo'] );

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.01218.14
8.3.50.0100.01122.05
8.3.40.0110.00418.67
8.3.30.0080.00819.17
8.3.20.0000.01420.20
8.3.10.0000.00723.66
8.3.00.0050.00219.01
8.2.180.0120.00618.54
8.2.170.0100.01022.96
8.2.160.0000.01722.23
8.2.150.0090.00924.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0040.00421.00
8.2.110.0030.00620.28
8.2.100.0060.00620.27
8.2.90.0040.00417.63
8.2.80.0040.00418.96
8.2.70.0060.00317.63
8.2.60.0040.00417.63
8.2.50.0050.00317.55
8.2.40.0040.00419.48
8.2.30.0040.00419.21
8.2.20.0030.00617.61
8.2.10.0080.00018.11
8.2.00.0040.00417.56
8.1.280.0040.01125.92
8.1.270.0080.00018.86
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0120.00022.12
8.1.230.0120.00020.82
8.1.220.0040.00418.37
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0050.00317.10
8.1.180.0060.00318.10
8.1.170.0040.00418.59
8.1.160.0000.00819.06
8.1.150.0000.00818.83
8.1.140.0020.00517.50
8.1.130.0070.00017.74
8.1.120.0000.00717.38
8.1.110.0000.00817.34
8.1.100.0070.00017.44
8.1.90.0050.00217.46
8.1.80.0070.00317.38
8.1.70.0000.00717.41
8.1.60.0040.00417.44
8.1.50.0050.00317.53
8.1.40.0050.00317.56
8.1.30.0060.00317.62
8.1.20.0040.00417.69
8.1.10.0040.00417.46
8.1.00.0040.00417.48
8.0.300.0000.00819.88
8.0.290.0000.00716.88
8.0.280.0040.00418.46
8.0.270.0040.00417.18
8.0.260.0000.00617.27
8.0.250.0000.00717.04
8.0.240.0000.00717.07
8.0.230.0000.00716.96
8.0.220.0070.00016.94
8.0.210.0030.00316.84
8.0.200.0030.00717.01
8.0.190.0030.00517.02
8.0.180.0040.00416.96
8.0.170.0080.00016.91
8.0.160.0000.00716.83
8.0.150.0000.00816.79
8.0.140.0040.00416.97
8.0.130.0000.00513.38
8.0.120.0030.00516.98
8.0.110.0000.00716.87
8.0.100.0000.00716.80
8.0.90.0040.00416.81
8.0.80.0180.00416.89
8.0.70.0020.00516.98
8.0.60.0040.00416.99
8.0.50.0020.00517.00
8.0.30.0110.00617.14
8.0.20.0140.00517.40
8.0.10.0030.00617.12
8.0.00.0130.00416.70
7.4.330.0020.00215.03
7.4.320.0000.00616.50
7.4.300.0000.00616.50
7.4.290.0040.00416.62
7.4.280.0000.00716.68
7.4.270.0070.00016.41
7.4.260.0000.00716.53
7.4.250.0000.00716.56
7.4.240.0050.00216.51
7.4.230.0040.00416.36
7.4.220.0110.00716.38
7.4.210.0120.00616.45
7.4.200.0030.00316.39
7.4.160.0090.00616.52
7.4.150.0090.00917.40
7.4.140.0070.01217.86
7.4.130.0080.00816.50
7.4.120.0050.01116.52
7.4.110.0190.00016.32
7.4.100.0110.00716.57
7.4.90.0130.00316.31
7.4.80.0090.01219.39
7.4.70.0070.01116.55
7.4.60.0100.00716.60
7.4.50.0040.00416.43
7.4.40.0100.00616.53
7.4.30.0170.00416.61
7.4.00.0090.00614.69
7.3.330.0000.00513.29
7.3.320.0030.00313.17
7.3.310.0040.00416.33
7.3.300.0060.00016.18
7.3.290.0080.00716.31
7.3.280.0070.01416.30
7.3.270.0000.01817.40
7.3.260.0120.00416.30
7.3.250.0070.01016.32
7.3.240.0100.00716.32
7.3.230.0070.01016.39
7.3.210.0080.00816.43
7.3.200.0130.00619.39
7.3.190.0060.00916.31
7.3.180.0120.00316.52
7.3.170.0030.01516.36
7.3.160.0090.00616.50
7.3.10.0100.00616.68
7.3.00.0090.00316.49
7.2.330.0070.01016.63
7.2.320.0100.00716.78
7.2.310.0150.00616.84
7.2.300.0130.00416.43
7.2.290.0080.00916.52
7.2.130.0130.00017.00
7.2.120.0040.01116.95
7.2.110.0080.00316.89
7.2.100.0060.00616.67
7.2.90.0120.00316.81
7.2.80.0070.00716.94
7.2.70.0080.00816.95
7.2.60.0090.00616.75
7.2.50.0070.00416.95
7.2.40.0050.00516.89
7.2.30.0000.01017.10
7.2.20.0100.00016.92
7.2.10.0060.00617.21
7.2.00.0020.01318.27
7.1.250.0000.01215.64
7.1.200.0000.00915.41
7.1.100.0060.00317.96
7.1.70.0110.00416.63
7.1.60.0070.01819.22
7.1.50.0100.01016.57
7.1.00.0070.07322.45
7.0.200.0040.00416.91
7.0.140.0070.07022.00
7.0.60.0070.06019.96
7.0.50.0070.07317.86
7.0.40.0070.05320.24
7.0.30.0270.07020.15
7.0.20.0230.04720.07
7.0.10.0030.07320.30
7.0.00.0070.06320.09
5.6.280.0070.07021.04
5.6.210.0100.08720.53
5.6.200.0100.03318.23
5.6.190.0030.08320.67
5.6.180.0330.08020.28
5.6.170.0300.07720.55
5.6.160.0130.03320.56
5.6.150.0030.08318.16
5.6.140.0070.08318.30
5.6.130.0100.06718.29
5.6.120.0030.05720.90
5.6.110.0030.07021.00
5.6.100.0130.06021.11
5.6.90.0100.07320.96
5.6.80.0070.03720.44
5.5.350.0230.08320.48
5.5.340.0030.08717.94
5.5.330.0130.07720.35
5.5.320.0270.06720.52
5.5.310.0300.06020.41
5.5.300.0000.04718.05
5.5.290.0030.06017.95
5.5.280.0000.05020.89
5.5.270.0070.04720.79
5.5.260.0070.08020.79
5.5.250.0070.07020.80
5.5.240.0030.08020.23
5.4.450.0300.05719.61
5.4.440.0800.05719.32
5.4.430.0700.05019.65
5.4.420.0770.05019.24
5.4.410.0530.05719.30
5.4.400.0730.05018.91
5.4.390.0700.06019.18
5.4.380.0900.05318.73
5.4.370.0970.04318.70
5.4.360.0970.04018.53
5.4.350.0970.06718.80
5.4.340.0970.05318.59
5.4.320.0870.06318.80
5.4.310.0870.04318.78
5.4.300.1070.07018.71
5.4.290.0970.04318.75
5.4.280.0830.05718.59
5.4.270.1030.06018.50
5.4.260.0900.04718.55
5.4.250.0870.05318.60
5.4.240.0930.04718.61
5.4.230.0830.05718.58
5.4.220.0830.05718.51
5.4.210.0830.05318.52
5.4.200.0870.04716.80
5.4.190.0870.05718.68
5.4.180.0970.05318.72
5.4.170.0830.05718.73
5.4.160.0830.05018.78
5.4.150.0800.06018.76
5.4.140.0800.06016.22
5.4.130.0870.05316.30
5.4.120.0800.05716.38
5.4.110.0870.04716.26
5.4.100.0900.04716.34
5.4.90.0830.05016.26
5.4.80.0830.05016.26
5.4.70.0830.05316.30
5.4.60.0800.05716.27
5.4.50.0900.05016.20
5.4.40.0930.04016.23
5.4.30.0900.04716.26
5.4.20.0870.06016.30
5.4.10.0900.05016.20
5.4.00.1070.04015.67
5.3.290.1000.05014.89
5.3.280.0830.05714.64
5.3.270.0870.06014.63
5.3.260.0900.05314.71
5.3.250.0930.05014.78
5.3.240.0970.06014.63
5.3.230.0900.06014.58
5.3.220.0900.05014.55
5.3.210.1030.05014.55
5.3.200.0870.05014.79
5.3.190.0800.07014.62
5.3.180.0870.05014.61
5.3.170.0830.05714.75
5.3.160.0900.05314.55
5.3.150.0800.06014.79
5.3.140.0970.07014.78
5.3.130.0970.07314.77
5.3.120.0930.05014.65
5.3.110.1100.06014.59
5.3.100.0900.06714.07
5.3.90.0930.05014.00
5.3.80.1000.04314.05
5.3.70.0830.06714.05
5.3.60.1000.06314.08
5.3.50.0900.05013.97
5.3.40.0870.05713.94
5.3.30.0900.06714.03
5.3.20.1170.06013.89
5.3.10.0800.05713.76
5.3.00.0930.05013.69
5.2.170.0730.04311.14
5.2.160.0800.05011.09
5.2.150.0800.04311.22
5.2.140.0700.05311.26
5.2.130.0800.04011.15
5.2.120.0900.05311.14
5.2.110.0670.04711.18
5.2.100.0700.04311.16
5.2.90.0730.04011.21
5.2.80.0770.04711.22
5.2.70.0670.04711.20
5.2.60.0670.04711.08
5.2.50.0670.04711.01
5.2.40.0670.03711.02
5.2.30.0500.04710.95
5.2.20.0630.03711.11
5.2.10.0670.03710.91
5.2.00.0670.03310.75
5.1.60.0600.03310.19
5.1.50.0700.02310.04
5.1.40.0530.0409.97
5.1.30.0530.04010.44
5.1.20.0570.03710.48
5.1.10.0600.03310.18
5.1.00.0600.03310.26
5.0.50.0270.0338.59
5.0.40.0330.0308.55
5.0.30.0370.0378.41
5.0.20.0430.0308.22
5.0.10.0400.0278.31
5.0.00.0270.0478.37
4.4.90.0300.0235.91
4.4.80.0270.0275.91
4.4.70.0270.0236.00
4.4.60.0270.0235.89
4.4.50.0300.0236.01
4.4.40.0300.0335.90
4.4.30.0300.0206.01
4.4.20.0270.0305.93
4.4.10.0270.0235.94
4.4.00.0300.0335.91
4.3.110.0300.0205.92
4.3.100.0270.0235.82
4.3.90.0330.0175.87
4.3.80.0270.0335.79
4.3.70.0330.0175.82
4.3.60.0270.0235.82
4.3.50.0300.0235.76
4.3.40.0300.0335.80
4.3.30.0200.0205.13
4.3.20.0170.0205.13
4.3.10.0100.0275.13
4.3.00.0070.0207.60

preferences:
45.57 ms | 401 KiB | 5 Q