3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); class GrandMother { function f() { echo __METHOD__; } } class Mother extends GrandMother { function f() { echo __METHOD__; } } class Child extends Mother { function f() { GrandMother::f(); } } $c = new Child; $c->f();

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.31
8.3.50.0130.00822.85
8.3.40.0090.00618.66
8.3.30.0150.00018.54
8.3.20.0090.00020.10
8.3.10.0070.00021.73
8.3.00.0060.00319.25
8.2.180.0060.01216.50
8.2.170.0120.00322.96
8.2.160.0080.00620.38
8.2.150.0100.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00421.07
8.2.120.0040.00426.35
8.2.110.0100.00020.99
8.2.100.0040.00817.84
8.2.90.0050.00418.37
8.2.80.0080.00218.90
8.2.70.0030.00718.31
8.2.60.0070.00318.07
8.2.50.0030.00718.40
8.2.40.0010.01019.56
8.2.30.0050.00518.91
8.2.20.0070.00418.13
8.2.10.0070.00318.28
8.2.00.0060.00518.41
8.1.280.0190.00025.92
8.1.270.0050.00323.96
8.1.260.0000.00928.09
8.1.250.0070.00028.09
8.1.240.0090.00019.09
8.1.230.0000.01122.11
8.1.220.0120.00618.91
8.1.210.0110.00018.44
8.1.200.0030.00617.84
8.1.190.0020.00917.44
8.1.180.0000.01018.19
8.1.170.0010.00818.65
8.1.160.0060.00418.68
8.1.150.0030.00618.60
8.1.140.0050.00518.90
8.1.130.0110.00018.01
8.1.120.0070.00217.93
8.1.110.0050.00617.94
8.1.100.0080.00118.00
8.1.90.0060.00518.02
8.1.80.0060.00418.04
8.1.70.0050.00517.96
8.1.60.0080.00318.17
8.1.50.0040.00717.99
8.1.40.0040.00618.14
8.1.30.0040.00618.14
8.1.20.0080.00618.02
8.1.10.0070.00418.02
8.1.00.0080.00417.99
8.0.300.0080.00617.48
8.0.290.0060.00516.98
8.0.280.0080.00318.12
8.0.270.0070.00417.29
8.0.260.0080.00218.85
8.0.250.0040.00717.35
8.0.240.0050.00517.26
8.0.230.0080.00317.17
8.0.220.0040.00817.23
8.0.210.0070.00317.21
8.0.200.0070.00317.32
8.0.190.0030.00717.29
8.0.180.0070.00417.28
8.0.170.0030.00717.25
8.0.160.0040.00717.23
8.0.150.0050.00717.19
8.0.140.0090.00417.23
8.0.130.0080.00215.30
8.0.120.0030.00917.17
8.0.110.0080.00217.10
8.0.100.0080.00217.02
8.0.90.0050.00517.29
8.0.80.0090.00917.10
8.0.70.0090.00217.13
8.0.60.0090.00117.06
8.0.50.0070.00617.13
8.0.30.0040.01317.14
8.0.20.0100.00717.37
8.0.10.0030.01117.21
8.0.00.0120.00517.15
7.4.330.0050.00416.21
7.4.320.0090.00316.94
7.4.300.0090.00316.95
7.4.290.0050.00616.95
7.4.280.0040.00816.87
7.4.270.0070.00417.02
7.4.260.0070.00517.04
7.4.250.0060.00516.94
7.4.240.0050.00716.96
7.4.230.0080.00416.97
7.4.220.0060.01516.95
7.4.210.0140.00516.98
7.4.200.0060.00616.99
7.4.190.0100.00517.33
7.4.180.0150.00017.51
7.4.160.0060.00916.68
7.4.150.0100.00617.07
7.4.140.0120.00717.42
7.4.130.0060.01016.72
7.4.120.0080.00916.72
7.4.110.0080.00916.72
7.4.100.0080.01016.79
7.4.90.0110.00716.71
7.4.80.0090.00817.45
7.4.70.0080.00916.68
7.4.60.0100.00816.66
7.4.50.0090.00716.69
7.4.40.0080.00916.70
7.4.30.0090.00716.79
7.4.20.0080.00916.79
7.4.10.0100.00616.31
7.4.00.0070.00816.07
7.3.330.0030.00815.21
7.3.320.0090.00215.27
7.3.310.0080.00316.76
7.3.300.0070.00416.72
7.3.290.0060.01016.51
7.3.280.0110.00716.39
7.3.270.0060.01016.98
7.3.260.0140.00316.52
7.3.250.0140.00416.45
7.3.240.0110.00616.57
7.3.230.0090.00816.52
7.3.220.0060.01016.55
7.3.210.0080.01016.50
7.3.200.0100.00716.55
7.3.190.0110.00716.51
7.3.180.0090.00816.52
7.3.170.0140.00416.49
7.3.160.0120.00616.59
7.3.150.0100.00816.59
7.3.140.0040.01116.62
7.3.130.0090.00716.22
7.3.120.0100.00815.91
7.3.110.0090.00815.79
7.3.100.0050.00915.91
7.3.90.0090.00615.88
7.3.80.0070.00915.88
7.3.70.0080.00715.89
7.3.60.0070.00915.93
7.3.50.0090.00715.86
7.3.40.0090.00715.88
7.3.30.0090.00715.85
7.3.20.0120.00316.62
7.3.10.0080.00716.60
7.3.00.0100.00816.60
7.2.340.0100.01116.79
7.2.330.0090.01116.70
7.2.320.0170.00716.75
7.2.310.0130.00816.68
7.2.300.0140.00616.73
7.2.290.0080.01116.72
7.2.280.0140.00716.80
7.2.270.0130.00616.79
7.2.260.0080.01116.34
7.2.250.0140.00816.24
7.2.240.0060.01216.03
7.2.230.0100.00715.94
7.2.220.0110.00716.04
7.2.210.0100.00715.89
7.2.200.0070.01116.02
7.2.190.0090.01116.02
7.2.180.0140.00816.00
7.2.170.0110.00816.07
7.2.160.0100.00615.98
7.2.150.0090.00816.82
7.2.140.0060.01116.84
7.2.130.0080.00916.80
7.2.120.0110.00816.92
7.2.110.0150.00516.83
7.2.100.0120.00416.80
7.2.90.0440.00516.81
7.2.80.0130.01016.83
7.2.70.0140.00616.84
7.2.60.0100.00916.89
7.2.50.0100.00916.85
7.2.40.1180.01016.96
7.2.30.0770.00916.98
7.2.20.0620.00517.07
7.2.10.0780.00916.98
7.2.00.0660.00817.19
7.1.330.0090.00815.91
7.1.320.0110.00615.91
7.1.310.0110.00515.95
7.1.300.0150.00415.87
7.1.290.0130.01115.91
7.1.280.0120.01015.93
7.1.270.0090.00715.95
7.1.260.0110.00715.92
7.1.250.0070.00816.00
7.1.240.0130.00915.89
7.1.230.0150.00715.89
7.1.220.0150.00715.92
7.1.210.0160.00415.95
7.1.200.0100.00915.93
7.1.190.0110.01015.97
7.1.180.0150.00615.93
7.1.170.0120.00915.93
7.1.160.1200.00916.11
7.1.150.0840.00616.12
7.1.140.0890.00916.01
7.1.130.0990.00716.09
7.1.120.0920.00916.10
7.1.110.0960.00616.05
7.1.100.0680.00716.01
7.1.90.0810.00815.92
7.1.80.0730.00715.92
7.1.70.0250.00915.99
7.1.60.0840.01019.40
7.1.50.0390.00919.37
7.1.40.0340.00919.24
7.1.30.0340.00819.30
7.1.20.0410.01019.35
7.1.10.0290.00915.72
7.1.00.0240.01916.79
7.0.330.0160.00615.73
7.0.320.0140.00715.66
7.0.310.0170.00515.71
7.0.300.0140.00615.72
7.0.290.1000.00715.89
7.0.280.0130.00615.73
7.0.270.0690.00615.82
7.0.260.0810.01215.83
7.0.250.0690.00715.78
7.0.240.0640.01115.83
7.0.230.0730.00815.80
7.0.220.0680.00615.77
7.0.210.0350.00615.51
7.0.200.0480.00815.76
7.0.190.0420.00615.59
7.0.180.0430.00815.43
7.0.170.0330.00915.55
7.0.160.0610.01015.40
7.0.150.0280.00715.53
7.0.140.0220.00915.46
7.0.130.0280.00715.56
7.0.120.0230.01115.59
7.0.110.0270.00915.51
7.0.100.0240.02216.18
7.0.90.0230.01516.21
7.0.80.0240.01516.15
7.0.70.0190.01916.16
7.0.60.0270.01716.19
7.0.50.0230.01916.26
7.0.40.0240.01615.94
7.0.30.0210.01615.95
7.0.20.0220.02315.92
7.0.10.0200.01915.96
7.0.00.0710.01615.93
5.6.400.0160.00315.91
5.6.390.0100.01015.88
5.6.380.0150.00515.79
5.6.370.0140.00715.75
5.6.360.0150.00815.79
5.6.350.0150.00615.77
5.6.340.0100.01115.84
5.6.330.0080.01215.76
5.6.320.0110.00915.82
5.6.310.0140.00815.78
5.6.300.0190.02016.82
5.6.290.0170.02016.87
5.6.280.0130.01816.92
5.6.270.0140.01716.86
5.6.260.0140.01816.86
5.6.250.0130.02917.40
5.6.240.0120.03117.48
5.6.230.0120.02517.57
5.6.220.0160.03117.45
5.6.210.0140.03017.47
5.6.200.0130.03017.52
5.6.190.0100.02517.55
5.6.180.0130.02717.59
5.6.170.0170.02817.56
5.6.160.0160.02417.54
5.6.150.0150.03117.57
5.6.140.0140.03017.51
5.6.130.0150.02917.59
5.6.120.0140.02817.42
5.6.110.0150.02417.49
5.6.100.0120.02517.53
5.6.90.0110.02417.51
5.6.80.0110.02417.28
5.6.70.0170.01817.31
5.6.60.0110.02217.31
5.6.50.0110.02617.36
5.6.40.0120.02517.31
5.6.30.0110.02517.33
5.6.20.0140.02217.27
5.6.10.0120.02617.29
5.6.00.0110.02617.24
5.5.380.0150.03417.33
5.5.370.0170.02717.39
5.5.360.0130.03217.38
5.5.350.0150.02717.31
5.5.340.0110.03517.56
5.5.330.0160.03417.52
5.5.320.0120.03017.54
5.5.310.0130.03917.59
5.5.300.0190.03017.58
5.5.290.0180.03317.45
5.5.280.0130.02717.50
5.5.270.0160.02517.58
5.5.260.0130.02617.58
5.5.250.0130.03017.44
5.5.240.0140.02717.28
5.5.230.0130.02617.27
5.5.220.0150.02217.30
5.5.210.0140.02617.29
5.5.200.0130.02417.24
5.5.190.0120.02417.26
5.5.180.0150.02617.14
5.5.170.0160.00716.20
5.5.160.0140.02517.24
5.5.150.0160.02517.27
5.5.140.0130.03117.20
5.5.130.0110.03517.25
5.5.120.0150.02917.18
5.5.110.0140.02817.22
5.5.100.0150.02317.19
5.5.90.0140.02317.22
5.5.80.0170.02017.26
5.5.70.0150.03317.24
5.5.60.0140.02517.29
5.5.50.0160.02617.27
5.5.40.0120.02717.26
5.5.30.0130.02617.25
5.5.20.0180.01917.30
5.5.10.0130.02717.31
5.5.00.0170.02417.16

preferences:
65.56 ms | 401 KiB | 5 Q