3v4l.org

run code in 300+ PHP versions simultaneously
y<?php class A { public function foo() { echo 'bar'; } } trait footrait { public function foo() { $parent = get_parent_class($this); $parent::foo(); } } class B extends A { public function foo() { echo 'baz'; } use footrait; } $b = new B(); $b->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.0110.00416.38
8.3.50.0110.00522.12
8.3.40.0040.01118.68
8.3.30.0080.00619.00
8.3.20.0050.00320.14
8.3.10.0080.00023.65
8.3.00.0080.00019.08
8.2.180.0070.01416.32
8.2.170.0110.00422.96
8.2.160.0070.01020.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00726.16
8.2.120.0040.00420.92
8.2.110.0060.00322.11
8.2.100.0080.00417.48
8.2.90.0070.00019.17
8.2.80.0000.00817.97
8.2.70.0030.00717.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0040.00421.06
8.2.30.0050.00218.31
8.2.20.0000.00817.58
8.2.10.0000.00718.11
8.2.00.0040.00417.70
8.1.280.0070.00725.92
8.1.270.0080.00023.85
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00622.14
8.1.230.0040.00719.09
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0080.00017.10
8.1.180.0030.00518.10
8.1.170.0040.00418.57
8.1.160.0040.00422.02
8.1.150.0000.00818.61
8.1.140.0050.00217.41
8.1.130.0070.00017.83
8.1.120.0000.00717.36
8.1.110.0030.00717.35
8.1.100.0000.00717.43
8.1.90.0030.00617.44
8.1.80.0040.00417.50
8.1.70.0040.00417.34
8.1.60.0000.00817.49
8.1.50.0080.00017.41
8.1.40.0040.00417.44
8.1.30.0000.00817.58
8.1.20.0040.00417.62
8.1.10.0040.00417.44
8.1.00.0030.00617.59
8.0.300.0090.00018.77
8.0.290.0000.00717.04
8.0.280.0070.00018.36
8.0.270.0000.00717.19
8.0.260.0000.00817.21
8.0.250.0030.00316.98
8.0.240.0000.00716.97
8.0.230.0000.00816.95
8.0.220.0000.00716.81
8.0.210.0030.00316.77
8.0.200.0040.00416.97
8.0.190.0060.00316.80
8.0.180.0040.00416.82
8.0.170.0040.00416.94
8.0.160.0000.00716.78
8.0.150.0040.00416.89
8.0.140.0000.00716.89
8.0.130.0030.00313.34
8.0.120.0030.00516.82
8.0.110.0070.00016.81
8.0.100.0000.00716.91
8.0.90.0050.00216.78
8.0.80.0150.00716.78
8.0.70.0080.00016.80
8.0.60.0040.00416.86
8.0.50.0020.00516.98
8.0.30.0140.00517.17
8.0.20.0090.01017.40
8.0.10.0040.00417.02
8.0.00.0110.00916.86
7.4.330.0000.00615.07
7.4.320.0000.00716.61
7.4.300.0000.00816.50
7.4.290.0030.00316.65
7.4.280.0040.00416.64
7.4.270.0030.00316.53
7.4.260.0040.00416.45
7.4.250.0040.00416.59
7.4.240.0020.00516.56
7.4.230.0030.00316.50
7.4.220.0060.01316.60
7.4.210.0130.00516.60
7.4.200.0000.00716.45
7.4.190.0070.00016.57
7.4.160.0100.00616.43
7.4.150.0070.01717.40
7.4.140.0130.00717.86
7.4.130.0060.01116.38
7.4.120.0120.00516.62
7.4.110.0070.01016.41
7.4.100.0100.01316.51
7.4.90.0130.00416.39
7.4.80.0090.00619.39
7.4.70.0110.00516.54
7.4.60.0160.00416.63
7.4.50.0000.00616.56
7.4.40.0100.00716.56
7.4.30.0060.00916.61
7.4.00.0070.01015.04
7.3.330.0050.00013.14
7.3.320.0000.00513.31
7.3.310.0000.00716.20
7.3.300.0030.00316.32
7.3.290.0080.01316.31
7.3.280.0090.00616.27
7.3.270.0110.00617.40
7.3.260.0150.00416.35
7.3.250.0150.00516.32
7.3.240.0120.00916.52
7.3.230.0100.00716.39
7.3.210.0040.01716.18
7.3.200.0090.00919.39
7.3.190.0140.00416.23
7.3.180.0090.00916.18
7.3.170.0100.00716.61
7.3.160.0110.00416.39
7.3.120.0040.00414.52
7.3.10.0130.00316.57
7.3.00.0100.00616.36
7.2.330.0130.00616.72
7.2.320.0150.00416.67
7.2.310.0040.01216.72
7.2.300.0130.00316.70
7.2.290.0060.01516.62
7.2.130.0040.01516.86
7.2.120.0070.01016.91
7.2.110.0090.00616.45
7.2.100.0100.00716.55
7.2.90.0130.00316.65
7.2.80.0000.01516.48
7.2.70.0110.00716.66
7.2.60.0100.00716.70
7.2.50.0060.01016.76
7.2.40.0130.00316.99
7.2.30.0100.01016.80
7.2.20.0140.00516.53
7.2.10.0070.00716.65
7.2.00.0010.01118.00
7.1.250.0190.00315.48
7.1.240.0000.00915.14
7.1.230.0100.00315.57
7.1.220.0070.00715.50
7.1.210.0060.01215.50
7.1.200.0070.00715.61
7.1.190.0090.00315.63
7.1.180.0090.00315.65
7.1.170.0000.01215.28
7.1.160.0150.00015.56
7.1.150.0060.00915.71
7.1.140.0150.00015.67
7.1.130.0100.00315.41
7.1.120.0100.00615.72
7.1.110.0130.00315.57
7.1.100.0070.00716.59
7.1.90.0080.00815.37
7.1.80.0100.00315.39
7.1.70.0090.00216.24
7.1.60.0110.00817.56
7.1.50.0110.00816.11
7.1.40.0130.00015.63
7.1.30.0040.00715.59
7.1.20.0090.00215.70
7.1.10.0110.00315.61
7.1.00.0040.04218.85
7.0.330.0130.00315.41
7.0.320.0100.00315.22
7.0.310.0060.00915.34
7.0.300.0040.00815.14
7.0.290.0090.00615.00
7.0.280.0090.00615.16
7.0.270.0130.00014.95
7.0.260.0030.01314.98
7.0.250.0070.00715.19
7.0.240.0070.01014.84
7.0.230.0160.00015.06
7.0.220.0100.00615.27
7.0.210.0180.00015.00
7.0.200.0090.00415.79
7.0.190.0040.01115.22
7.0.180.0110.00715.33
7.0.170.0120.00615.20
7.0.160.0170.00415.17
7.0.150.0080.01215.15
7.0.140.0080.03618.66
7.0.130.0130.00315.36
7.0.120.0120.00915.44
7.0.110.0100.00615.48
7.0.100.0080.00415.08
7.0.90.0130.00315.24
7.0.80.0100.01015.23
7.0.70.0070.00715.11
7.0.60.0080.03817.55
7.0.50.0090.02216.49
7.0.40.0050.04516.79
7.0.30.0070.02616.85
7.0.20.0200.04016.58
7.0.10.0060.02616.77
7.0.00.0100.04416.80
5.6.380.0060.00613.99
5.6.370.0040.01114.24
5.6.360.0080.01114.13
5.6.350.0120.00613.90
5.6.340.0130.00513.93
5.6.330.0090.00614.09
5.6.320.0100.00314.29
5.6.310.0100.00714.31
5.6.300.0090.00814.31
5.6.290.0000.01214.45
5.6.280.0020.04417.86
5.6.270.0080.00614.35
5.6.260.0050.00813.90
5.6.250.0030.01314.14
5.6.240.0000.01514.25
5.6.230.0060.00914.05
5.6.220.0050.01414.13
5.6.210.0070.04217.40
5.6.200.0110.02316.34
5.6.190.0070.02817.26
5.6.180.0210.03617.29
5.6.170.0160.03817.48
5.6.160.0080.02317.32
5.6.150.0110.03716.20
5.6.140.0070.02216.28
5.6.130.0050.03616.23
5.6.120.0090.04017.49
5.6.110.0030.04817.58
5.6.100.0070.04317.68
5.6.90.0090.04217.70
5.6.80.0040.03917.32
5.6.70.0070.00314.36
5.6.60.0040.00414.22
5.6.50.0040.00813.98
5.6.40.0040.00414.12
5.6.30.0000.00914.18
5.6.20.0100.00313.96
5.6.10.0040.00414.16
5.6.00.0030.00913.98
5.5.380.0050.00511.28
5.5.370.0110.00011.07
5.5.360.0040.00810.93
5.5.350.0190.04015.91
5.5.340.0140.03514.68
5.5.330.0040.02415.67
5.5.320.0160.03815.63
5.5.310.0190.03215.61
5.5.300.0070.03914.54
5.5.290.0050.02314.44
5.5.280.0070.04316.01
5.5.270.0040.02716.02
5.5.260.0070.02215.88
5.5.250.0050.04515.73
5.5.240.0070.03315.63
5.5.230.0000.01111.08
5.5.220.0060.00311.18
5.5.210.0070.00311.08
5.5.200.0030.00710.90
5.5.190.0090.00010.71
5.5.180.0060.00310.88
5.5.170.0040.00410.79
5.5.160.0030.00710.93
5.5.150.0060.00311.22
5.5.140.0030.00310.71
5.5.130.0000.01010.96
5.5.120.0030.00610.97
5.5.110.0030.00611.15
5.5.100.0030.00710.71
5.5.90.0000.00510.93
5.5.80.0030.00610.71
5.5.70.0070.00310.86
5.5.60.0030.00610.89
5.5.50.0050.00010.71
5.5.40.0080.00411.02
5.5.30.0040.00810.91
5.5.20.0070.00410.94
5.5.10.0070.00010.71
5.5.00.0050.00210.74
5.4.450.0170.02523.12
5.4.440.0100.02621.29
5.4.430.0080.02718.51
5.4.420.0170.01817.84
5.4.410.0200.02516.80
5.4.400.0570.02614.99
5.4.390.0070.02715.61
5.4.380.0200.03114.87
5.4.370.0230.03114.82
5.4.360.0200.03314.82
5.4.350.0220.02814.74
5.4.340.0150.03514.84
5.4.330.0030.00610.86
5.4.320.0050.02311.61
5.4.310.0050.02411.70
5.4.300.0050.02311.64
5.4.290.0050.02411.66
5.4.280.0050.02311.64
5.4.270.0030.02311.55
5.4.260.0050.02111.66
5.4.250.0070.02111.64
5.4.240.0040.02211.55
5.4.230.0070.02111.68
5.4.220.0070.02111.58
5.4.210.0050.02311.55
5.4.200.0030.02311.61
5.4.190.0050.02511.56
5.4.180.0080.02611.65
5.4.170.0060.02911.55
5.4.160.0080.02611.64
5.4.150.0070.02711.68
5.4.140.0070.02611.39
5.4.130.0090.02511.54
5.4.120.0070.02911.55
5.4.110.0120.02411.54
5.4.100.0070.02711.43
5.4.90.0100.02511.36
5.4.80.0070.02211.36
5.4.70.0100.01611.36
5.4.60.0070.02111.36
5.4.50.0040.02911.36
5.4.40.0040.03011.36
5.4.30.0020.02911.48
5.4.20.0080.02511.49
5.4.10.0060.02711.49
5.4.00.0040.02911.09
5.3.290.0040.03011.75
5.3.280.0070.02711.71
5.3.270.0070.02711.71
5.3.260.0040.03011.71
5.3.250.0090.02811.71
5.3.240.0080.02811.71
5.3.230.0060.02811.71
5.3.220.0040.02611.69
5.3.210.0070.02411.70
5.3.200.0080.02111.69
5.3.190.0070.02311.69
5.3.180.0060.02111.69
5.3.170.0040.02611.69
5.3.160.0040.02411.69
5.3.150.0040.02511.69
5.3.140.0060.02911.68
5.3.130.0090.02711.68
5.3.120.0070.02911.68
5.3.110.0060.02911.68
5.3.100.0040.02211.41
5.3.90.0080.02111.41
5.3.80.0040.02511.40
5.3.70.0090.02311.40
5.3.60.0100.02211.39
5.3.50.0040.02611.36
5.3.40.0050.02211.37
5.3.30.0050.02111.35
5.3.20.0040.02011.23
5.3.10.0090.01811.22
5.3.00.0050.02111.21
5.2.170.0040.0169.96
5.2.160.0050.0169.96
5.2.150.0060.0169.96
5.2.140.0080.0199.96
5.2.130.0060.0169.94
5.2.120.0060.0159.94
5.2.110.0040.0189.95
5.2.100.0070.0159.94
5.2.90.0050.0159.94
5.2.80.0060.0169.94
5.2.70.0060.0159.94
5.2.60.0060.0169.92
5.2.50.0070.0149.90
5.2.40.0040.0179.89
5.2.30.0040.0189.88
5.2.20.0060.0169.87
5.2.10.0050.0169.83
5.2.00.0020.0219.76
5.1.60.0020.0169.40
5.1.50.0030.0159.40
5.1.40.0040.0139.38
5.1.30.0040.0149.56
5.1.20.0030.0169.57
5.1.10.0040.0149.44
5.1.00.0020.0169.44
5.0.50.0020.0138.68
5.0.40.0030.0108.61
5.0.30.0060.0138.51
5.0.20.0050.0098.49
5.0.10.0020.0138.48
5.0.00.0030.0178.48
4.4.90.0040.0077.74
4.4.80.0040.0087.73
4.4.70.0020.0097.73
4.4.60.0030.0087.73
4.4.50.0020.0097.74
4.4.40.0010.0157.71
4.4.30.0030.0107.73
4.4.20.0030.0087.78
4.4.10.0030.0087.78
4.4.00.0050.0117.73
4.3.110.0010.0107.69
4.3.100.0050.0057.69
4.3.90.0040.0077.67
4.3.80.0020.0157.65
4.3.70.0010.0117.67
4.3.60.0020.0087.67
4.3.50.0020.0107.67
4.3.40.0020.0137.62
4.3.30.0030.0087.00
4.3.20.0020.0096.99
4.3.10.0010.0106.97
4.3.00.0040.01015.34

preferences:
44.46 ms | 401 KiB | 5 Q