3v4l.org

run code in 300+ PHP versions simultaneously
<?php class nodeGroup { public function test() { echo "internal\n"; } public function somethingElse() { echo "somethingElse\n"; } } $a = new class extends nodeGroup { public function test() { echo "extended\n"; } }; $a->test(); $a->somethingElse();

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.5.00.0130.00820.09
8.4.150.0020.00014.05
8.4.140.0140.00817.62
8.4.130.0140.00617.78
8.4.120.0130.00722.32
8.4.110.0140.00622.59
8.4.100.0140.00717.61
8.4.90.0110.01020.69
8.4.80.0070.00722.68
8.4.70.0140.00717.90
8.4.60.0150.00717.65
8.4.50.0130.00718.66
8.4.40.0030.01617.77
8.4.30.0100.01020.56
8.4.20.0100.00018.02
8.4.10.0090.00920.75
8.3.280.0130.00718.37
8.3.270.0090.01316.46
8.3.260.0100.01016.71
8.3.250.0120.00619.05
8.3.240.0050.00316.42
8.3.230.0120.00716.60
8.3.220.0110.01018.95
8.3.210.0070.00616.51
8.3.200.0140.00516.48
8.3.190.0090.01016.94
8.3.180.0110.00718.61
8.3.170.0120.00617.11
8.3.160.0110.00716.44
8.3.150.0150.00017.20
8.3.140.0030.00517.04
8.3.130.0040.00418.38
8.3.120.0150.00019.04
8.3.110.0050.00320.94
8.3.100.0030.00616.50
8.3.90.0040.00418.42
8.3.80.0030.00719.36
8.3.70.0100.00716.58
8.3.60.0100.01016.49
8.3.50.0260.00823.60
8.3.40.0120.00322.08
8.3.30.0120.00318.68
8.3.20.0070.00724.18
8.3.10.0040.00424.66
8.3.00.0060.00326.16
8.2.290.0120.00517.09
8.2.280.0080.00716.48
8.2.270.0120.00816.98
8.2.260.0030.00717.19
8.2.250.0040.01418.78
8.2.240.0140.00418.79
8.2.230.0050.00322.58
8.2.220.0040.00424.06
8.2.210.0000.00826.77
8.2.200.0050.00518.13
8.2.190.0090.00616.58
8.2.180.0000.01425.92
8.2.170.0110.00818.74
8.2.160.0040.01122.96
8.2.150.0050.00325.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00026.35
8.2.110.0060.00320.99
8.2.100.0040.00717.72
8.2.90.0060.00317.84
8.2.80.0060.00318.02
8.2.70.0050.00317.50
8.2.60.0040.00417.50
8.2.50.0000.00817.87
8.2.40.0050.00519.23
8.2.30.0040.00417.70
8.2.20.0070.00018.17
8.2.10.0040.00420.98
8.2.00.0040.00419.13
8.1.330.0150.00523.82
8.1.320.0120.00817.91
8.1.310.0030.00616.67
8.1.300.0040.00417.72
8.1.290.0030.00618.88
8.1.280.0100.01025.92
8.1.270.0040.00424.02
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0090.00023.92
8.1.230.0040.00822.66
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0080.00017.23
8.1.190.0000.00917.23
8.1.180.0000.00818.10
8.1.170.0030.00517.62
8.1.160.0030.00518.83
8.1.150.0000.00818.89
8.1.140.0000.00718.89
8.1.130.0030.00320.14
8.1.120.0040.00417.34
8.1.110.0040.00417.47
8.1.100.0040.00417.33
8.1.90.0040.00317.48
8.1.80.0050.00317.46
8.1.70.0070.00017.45
8.1.60.0050.00317.62
8.1.50.0080.00017.53
8.1.40.0000.01017.55
8.1.30.0040.00417.60
8.1.20.0000.00717.65
8.1.10.0000.00817.64
8.1.00.0080.00017.54
8.0.300.0000.00719.98
8.0.290.0000.00716.75
8.0.280.0040.00417.89
8.0.270.0070.00016.89
8.0.260.0040.00420.23
8.0.250.0030.00316.90
8.0.240.0030.00616.97
8.0.230.0000.00717.02
8.0.220.0080.00016.78
8.0.210.0070.00016.89
8.0.200.0080.00016.94
8.0.190.0000.00716.84
8.0.180.0030.00416.83
8.0.170.0040.00416.91
8.0.160.0040.00416.91
8.0.150.0030.00516.89
8.0.140.0040.00416.87
8.0.130.0000.00613.32
8.0.120.0040.00416.76
8.0.110.0040.00416.73
8.0.100.0070.00016.81
8.0.90.0040.00316.80
8.0.80.0090.00716.85
8.0.70.0040.00416.84
8.0.60.0040.00416.96
8.0.50.0030.00616.96
8.0.30.0080.00817.15
8.0.20.0090.01317.18
8.0.10.0080.00017.06
8.0.00.0100.01016.73
7.4.330.0030.00315.55
7.4.320.0000.00616.48
7.4.300.0030.00316.63
7.4.290.0030.00616.48
7.4.280.0030.00616.63
7.4.270.0000.00716.56
7.4.260.0060.00013.24
7.4.250.0040.00416.48
7.4.240.0030.00316.66
7.4.230.0070.00016.59
7.4.220.0030.00316.48
7.4.210.0110.00716.59
7.4.200.0040.00416.70
7.4.130.0110.01316.51
7.4.120.0090.01016.44
7.4.110.0120.01016.18
7.4.100.0100.01016.52
7.4.90.0050.01816.31
7.4.80.0080.01216.14
7.4.70.0080.01416.48
7.4.60.0000.02316.52
7.4.50.0130.01016.37
7.4.40.0120.00816.11
7.4.30.0130.00616.54
7.4.20.0180.00316.23
7.4.10.0070.01516.66
7.4.00.0070.01716.66
7.3.330.0040.00416.27
7.3.320.0000.00513.35
7.3.310.0030.00316.29
7.3.300.0000.00716.17
7.3.290.0100.00616.25
7.3.260.0070.01516.30
7.3.230.0110.00616.33
7.3.220.0150.00416.18
7.3.210.0040.01716.07
7.3.200.0060.01016.34
7.3.190.0150.00416.54
7.3.180.0130.00516.25
7.3.170.0130.01016.18
7.3.160.0090.01316.22
7.3.150.0130.00616.20
7.3.140.0170.00316.59
7.3.130.0100.01016.16
7.3.120.0110.01416.12
7.3.110.0140.00716.34
7.3.100.0140.01116.27
7.3.90.0060.02016.10
7.3.80.0130.00816.06
7.3.70.0130.00816.23
7.3.60.0130.00916.01
7.3.50.0100.01016.00
7.3.40.0060.01116.13
7.3.30.0130.00616.05
7.3.20.0030.01616.30
7.3.10.0140.00716.04
7.3.00.0170.00316.14
7.2.340.0200.00716.25
7.2.330.0170.00616.29
7.2.320.0090.00916.40
7.2.310.0000.02216.38
7.2.300.0180.00416.46
7.2.290.0110.00716.55
7.2.280.0140.00516.47
7.2.270.0040.01516.77
7.2.260.0110.01416.27
7.2.250.0110.01316.48
7.2.240.0190.01016.32
7.2.230.0120.01516.50
7.2.220.0100.01716.62
7.2.210.0120.00816.45
7.2.200.0180.00616.52
7.2.190.0070.01316.34
7.2.180.0130.00716.46
7.2.170.0090.00916.47
7.2.160.0100.01016.51
7.2.150.0140.00816.50
7.2.140.0110.01416.66
7.2.130.0060.01216.48
7.2.120.0130.01016.52
7.2.110.0110.01116.52
7.2.100.0370.00716.55
7.2.90.0060.01516.21
7.2.80.0090.01316.38
7.2.70.0110.01116.50
7.2.60.0090.01516.66
7.2.50.0080.01316.70
7.2.40.0070.01316.47
7.2.30.0060.01216.62
7.2.20.0100.01316.50
7.2.10.0210.01516.55
7.2.00.0200.01216.70

preferences:
175.52 ms | 403 KiB | 5 Q