3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function f() { echo "A.f() "; } public function g() { echo "A.g() "; } public static function main() { $a = new B(); $a->f(); } } class B extends A { public function f() { echo "B.f() "; } public function g() { echo "B.g() "; } public static function main() { $a = new B(); $a->f(); } } A::main(); B::main();

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.0070.01018.35
8.3.50.0090.00921.92
8.3.40.0070.00718.60
8.3.30.0110.00318.97
8.3.20.0070.00020.33
8.3.10.0080.00023.52
8.3.00.0000.01017.63
8.2.180.0090.00618.54
8.2.170.0070.00722.96
8.2.160.0070.00720.57
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00022.16
8.2.110.0060.00322.12
8.2.100.0090.00317.78
8.2.90.0040.00419.22
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0030.00518.03
8.2.50.0070.00318.07
8.2.40.0040.00419.88
8.2.30.0040.00418.00
8.2.20.0040.00417.61
8.2.10.0060.00318.09
8.2.00.0060.00317.60
8.1.280.0000.01425.92
8.1.270.0040.00422.04
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0000.01119.17
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0020.00517.23
8.1.180.0030.00618.10
8.1.170.0040.00418.58
8.1.160.0000.00721.88
8.1.150.0040.00418.48
8.1.140.0000.00917.30
8.1.130.0070.00017.74
8.1.120.0050.00217.35
8.1.110.0040.00417.37
8.1.100.0040.00417.27
8.1.90.0000.00817.29
8.1.80.0030.00517.34
8.1.70.0030.00317.30
8.1.60.0070.00317.54
8.1.50.0030.00617.51
8.1.40.0040.00417.49
8.1.30.0030.00517.48
8.1.20.0000.00717.68
8.1.10.0040.00417.45
8.1.00.0000.00817.39
8.0.300.0050.00320.65
8.0.290.0030.00517.18
8.0.280.0000.00718.48
8.0.270.0000.00717.29
8.0.260.0030.00317.17
8.0.250.0040.00416.84
8.0.240.0000.00716.89
8.0.230.0030.00316.92
8.0.220.0040.00416.77
8.0.210.0000.00816.77
8.0.200.0000.00716.80
8.0.190.0040.00416.75
8.0.180.0050.00216.75
8.0.170.0040.00416.91
8.0.160.0030.00316.80
8.0.150.0000.00816.77
8.0.140.0050.00316.68
8.0.130.0030.00313.25
8.0.120.0040.00416.82
8.0.110.0030.00516.84
8.0.100.0030.00616.81
8.0.90.0080.00016.79
8.0.80.0090.00616.78
8.0.70.0070.00016.70
8.0.60.0080.00016.86
8.0.50.0040.00416.84
8.0.30.0100.00816.99
8.0.20.0100.00817.40
8.0.10.0040.00416.79
8.0.00.0070.01116.73
7.4.330.0050.00015.09
7.4.320.0030.00316.55
7.4.300.0000.00616.60
7.4.290.0070.00016.59
7.4.280.0070.00416.50
7.4.270.0050.00316.50
7.4.260.0000.00716.59
7.4.250.0000.00716.53
7.4.240.0040.00316.53
7.4.230.0000.00716.69
7.4.220.0030.01416.57
7.4.210.0090.01016.59
7.4.200.0000.00716.50
7.4.190.0000.00716.68
7.4.160.0080.00816.33
7.4.150.0030.01417.40
7.4.140.0120.00617.86
7.4.130.0090.00816.43
7.4.120.0120.00516.53
7.4.110.0140.01116.43
7.4.100.0060.01516.40
7.4.90.0140.00316.55
7.4.80.0140.00719.39
7.4.70.0080.00816.67
7.4.60.0070.01016.26
7.4.50.0060.00316.50
7.4.40.0070.01516.55
7.4.30.0090.00816.64
7.4.00.0080.00814.85
7.3.330.0000.00613.08
7.3.320.0000.00513.18
7.3.310.0040.00416.13
7.3.300.0060.00016.23
7.3.290.0090.01116.17
7.3.280.0090.00716.28
7.3.270.0180.00617.40
7.3.260.0070.01016.18
7.3.250.0100.01016.33
7.3.240.0060.00916.43
7.3.230.0070.01016.39
7.3.210.0040.01216.45
7.3.200.0090.00919.39
7.3.190.0040.01816.35
7.3.180.0060.00916.57
7.3.170.0100.00716.49
7.3.160.0060.00916.32
7.3.120.0030.00714.73
7.2.330.0040.01316.68
7.2.320.0120.00716.33
7.2.310.0120.00416.73
7.2.300.0120.01216.63
7.2.290.0110.00716.75
7.1.70.0000.00716.89
7.1.60.0060.01919.46
7.1.50.0070.01816.96
7.1.00.0030.07722.24
7.0.200.0040.00416.84
7.0.140.0070.07021.97
7.0.60.0030.08319.86
7.0.50.0070.05317.86
7.0.40.0100.06020.23
7.0.30.0330.07720.11
7.0.20.0330.06320.25
7.0.10.0030.04720.13
7.0.00.0030.05720.16
5.6.280.0000.07721.13
5.6.210.0030.07320.70
5.6.200.0100.06718.26
5.6.190.0170.08020.54
5.6.180.0530.07320.61
5.6.170.0400.07020.60
5.6.160.0100.06320.61
5.6.150.0100.07718.19
5.6.140.0100.06318.18
5.6.130.0130.08018.18
5.6.120.0030.08021.04
5.6.110.0070.08321.02
5.6.100.0130.06320.98
5.6.90.0200.07021.11
5.6.80.0030.04720.39
5.5.350.3800.04320.34
5.5.340.0030.04018.09
5.5.330.0070.04320.13
5.5.320.0200.04020.31
5.5.310.0170.03720.32
5.5.300.0070.07317.97
5.5.290.0070.07017.98
5.5.280.0130.03320.88
5.5.270.0070.08320.77
5.5.260.0100.05320.84
5.5.250.0030.08320.59
5.5.240.0130.06720.05
5.4.450.0130.07019.45
5.4.440.0130.05319.45
5.4.430.0170.05019.60
5.4.420.0170.05019.45
5.4.410.0170.04719.57
5.4.400.0100.05319.31
5.4.390.0200.04319.15
5.4.380.0230.05018.57
5.4.370.0070.07318.80
5.4.360.0230.04018.77
5.4.350.0130.05318.63
5.4.340.0030.06018.59
5.4.320.0080.05812.51
5.4.310.0100.06012.50
5.4.300.0070.04512.50
5.4.290.0050.05612.48
5.4.280.0140.08012.38
5.4.270.0070.05312.38
5.4.260.0220.05112.38
5.4.250.0120.09312.38
5.4.240.0230.09312.39
5.4.230.0140.08912.37
5.4.220.0100.05712.37
5.4.210.0070.06112.38
5.4.200.0180.08312.38
5.4.190.0090.05612.38
5.4.180.0080.05512.37
5.4.170.0150.05112.38
5.4.160.0060.04012.38
5.4.150.0060.03912.38
5.4.140.0100.04912.06
5.4.130.0140.04612.05
5.4.120.0090.05412.01
5.4.110.0130.04812.00
5.4.100.0100.05012.00
5.4.90.0130.04512.00
5.4.80.0110.04712.00
5.4.70.0080.03511.99
5.4.60.0100.04012.00
5.4.50.0040.03812.00
5.4.40.0080.03511.98
5.4.30.0060.03711.98
5.4.20.0080.03511.98
5.4.10.0130.04711.98
5.4.00.0070.03911.46
5.3.290.0080.04512.80
5.3.280.0100.06912.70
5.3.270.0100.04712.72
5.3.260.0160.07712.72
5.3.250.0120.05412.72
5.3.240.0220.07312.72
5.3.230.0080.04912.71
5.3.220.0070.05812.68
5.3.210.0080.05812.68
5.3.200.0070.05512.68
5.3.190.0110.06712.68
5.3.180.0070.05512.68
5.3.170.0110.07212.67
5.3.160.0110.05012.67
5.3.150.0080.05112.68
5.3.140.0050.04112.66
5.3.130.0100.03812.66
5.3.120.0060.04212.66
5.3.110.0110.05412.66
5.3.100.0090.04112.13
5.3.90.0110.04412.10
5.3.80.0110.04512.09
5.3.70.0130.04612.09
5.3.60.0090.04712.08
5.3.50.0080.04112.03
5.3.40.0070.03912.03
5.3.30.0090.03711.99
5.3.20.0100.03711.77
5.3.10.0080.03511.73
5.3.00.0070.03811.72
5.2.170.0040.0379.23
5.2.160.0090.0349.23
5.2.150.0060.0479.23
5.2.140.0140.0919.22
5.2.130.0100.0429.19
5.2.120.0110.0409.19
5.2.110.0030.0479.19
5.2.100.0070.0409.19
5.2.90.0080.0579.18
5.2.80.0150.0659.18
5.2.70.0080.0419.18
5.2.60.0070.0459.13
5.2.50.0050.0439.10
5.2.40.0080.0539.08
5.2.30.0070.0429.06
5.2.20.0070.0399.04
5.2.10.0060.0378.95
5.2.00.0120.0348.82
5.1.60.0070.0348.10
5.1.50.0060.0358.09
5.1.40.0060.0358.07
5.1.30.0080.0428.42
5.1.20.0080.0388.45
5.1.10.0080.0538.17
5.1.00.0080.0378.17
5.0.50.0040.0316.64
5.0.40.0050.0276.50
5.0.30.0050.0416.32
5.0.20.0120.0416.29
5.0.10.0050.0366.26
5.0.00.0070.0656.25
4.4.90.0090.0214.78
4.4.80.0070.0524.75
4.4.70.0110.0404.75
4.4.60.0080.0324.75
4.4.50.0120.0344.77
4.4.40.0060.0414.71
4.4.30.0050.0204.76
4.4.20.0060.0224.85
4.4.10.0030.0254.85
4.4.00.0040.0364.76
4.3.110.0070.0214.67
4.3.100.0030.0254.67
4.3.90.0050.0224.63
4.3.80.0060.0334.58
4.3.70.0060.0234.63
4.3.60.0060.0224.63
4.3.50.0060.0334.62
4.3.40.0080.0434.54
4.3.30.0070.0373.30
4.3.20.0020.0413.28
4.3.10.0040.0363.24
4.3.00.0030.0207.22

preferences:
44.79 ms | 401 KiB | 5 Q