3v4l.org

run code in 300+ PHP versions simultaneously
y<?php class A { public function foo() { echo 'bar'; } } trait footrait { public function foo() { get_parent_class($this)::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.0100.01016.38
8.3.50.0050.01422.09
8.3.40.0120.00918.80
8.3.30.0070.00718.95
8.3.20.0040.00420.38
8.3.10.0090.00921.85
8.3.00.0090.00019.27
8.2.180.0190.00318.56
8.2.170.0120.00922.96
8.2.160.0120.00320.53
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00420.96
8.2.110.0060.00320.51
8.2.100.0060.00617.61
8.2.90.0040.00419.23
8.2.80.0000.00819.18
8.2.70.0030.00617.63
8.2.60.0040.00417.80
8.2.50.0000.00818.10
8.2.40.0060.00320.42
8.2.30.0000.00719.20
8.2.20.0040.00417.55
8.2.10.0000.00718.11
8.2.00.0030.00617.65
8.1.280.0000.02025.92
8.1.270.0040.00424.00
8.1.260.0080.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.80
8.1.230.0000.01120.89
8.1.220.0000.01117.74
8.1.210.0030.00518.77
8.1.200.0030.00617.00
8.1.190.0080.00017.23
8.1.180.0000.00718.10
8.1.170.0050.00318.55
8.1.160.0000.00718.91
8.1.150.0030.00520.12
8.1.140.0070.00017.40
8.1.130.0000.00717.82
8.1.120.0040.00417.36
8.1.110.0040.00417.43
8.1.100.0050.00317.52
8.1.90.0030.00417.45
8.1.80.0040.00417.37
8.1.70.0000.00717.42
8.1.60.0030.00617.47
8.1.50.0000.00717.50
8.1.40.0040.00417.41
8.1.30.0030.00517.53
8.1.20.0080.00017.63
8.1.10.0040.00417.57
8.1.00.0070.00017.43
8.0.300.0070.00418.77
8.0.290.0050.00216.75
8.0.280.0000.00718.43
8.0.270.0000.00717.24
8.0.260.0060.00017.19
8.0.250.0000.00816.96
8.0.240.0030.00616.92
8.0.230.0080.00016.88
8.0.220.0000.00616.80
8.0.210.0000.00716.91
8.0.200.0060.00016.95
8.0.190.0030.00316.91
8.0.180.0030.00516.80
8.0.170.0000.00716.79
8.0.160.0000.00716.77
8.0.150.0000.00716.83
8.0.140.0030.00316.75
8.0.130.0000.00513.40
8.0.120.0050.00316.89
8.0.110.0040.00416.77
8.0.100.0050.00216.84
8.0.90.0040.00416.76
8.0.80.0110.00516.88
8.0.70.0000.00716.92
8.0.60.0030.00516.89
8.0.50.0040.00316.89
8.0.30.0100.01017.16
8.0.20.0120.00717.40
8.0.10.0050.00316.88
8.0.00.0120.00616.59
7.4.330.0020.00215.10
7.4.320.0030.00316.48
7.4.300.0030.00316.55
7.4.290.0000.00716.55
7.4.280.0000.00716.61
7.4.270.0070.00016.42
7.4.260.0030.00316.60
7.4.250.0000.00716.57
7.4.240.0030.00416.62
7.4.230.0000.00716.25
7.4.220.0120.00916.63
7.4.210.0090.00516.66
7.4.200.0050.00316.52
7.4.190.0070.00016.44
7.4.160.0100.00716.52
7.4.150.0130.01017.40
7.4.140.0130.00517.86
7.4.130.0100.01016.59
7.4.120.0070.00916.55
7.4.110.0110.00716.57
7.4.100.0120.00616.52
7.4.90.0130.00316.48
7.4.80.0070.01019.39
7.4.70.0160.00616.46
7.4.60.0100.00716.42
7.4.50.0000.00816.49
7.4.40.0070.01016.35
7.4.30.0100.00516.43
7.4.00.0060.00914.87
7.3.330.0000.00513.22
7.3.320.0050.00013.23
7.3.310.0030.00416.34
7.3.300.0030.00316.16
7.3.290.0100.01016.28
7.3.280.0100.00716.31
7.3.270.0060.01217.40
7.3.260.0030.01516.20
7.3.250.0140.00816.41
7.3.240.0180.00316.50
7.3.230.0120.00316.39
7.3.210.0100.00716.35
7.3.200.0170.00019.39
7.3.190.0110.00716.58
7.3.180.0120.00316.52
7.3.170.0090.00616.38
7.3.160.0030.01316.14
7.3.120.0070.00714.37
7.3.10.0040.00916.32
7.3.00.0070.00716.56
7.2.330.0130.00616.65
7.2.320.0140.00916.79
7.2.310.0100.00716.27
7.2.300.0100.00716.62
7.2.290.0160.00616.63
7.2.130.0040.00816.60
7.2.120.0120.00616.82
7.2.110.0040.01116.80
7.2.100.0150.00016.84
7.2.90.0040.00816.73
7.2.80.0180.00016.68
7.2.70.0100.00716.53
7.2.60.0090.01016.49
7.2.50.0070.01116.75
7.2.40.0000.01716.88
7.2.30.0120.00916.62
7.2.20.0070.01016.84
7.2.10.0140.00016.92
7.2.00.0020.01218.17
7.1.250.0030.01315.71
7.1.240.0040.01115.36
7.1.230.0030.00915.28
7.1.220.0030.01315.47
7.1.210.0080.01215.27
7.1.200.0110.00415.66
7.1.190.0030.01315.65
7.1.180.0030.01015.65
7.1.170.0070.00715.77
7.1.160.0070.00715.42
7.1.150.0080.00415.57
7.1.140.0030.00615.46
7.1.130.0080.00815.66
7.1.120.0070.01015.64
7.1.110.0000.01515.45
7.1.100.0060.00316.99
7.1.90.0080.00415.45
7.1.80.0040.00715.60
7.1.70.0070.00116.32
7.1.60.0070.01217.38
7.1.50.0080.01015.94
7.1.40.0040.01215.32
7.1.30.0060.00315.41
7.1.20.0100.00315.39
7.1.10.0060.00315.54
7.1.00.0020.04418.84
7.0.330.0070.00715.22
7.0.320.0040.01115.21
7.0.310.0030.00615.18
7.0.300.0120.00615.11
7.0.290.0030.00615.13
7.0.280.0090.00315.14
7.0.270.0060.00615.30
7.0.260.0070.00315.23
7.0.250.0170.00015.17
7.0.240.0070.00415.39
7.0.230.0070.00415.27
7.0.220.0030.01015.21
7.0.210.0000.01015.36
7.0.200.0010.00815.85
7.0.190.0030.00614.96
7.0.180.0080.00315.36
7.0.170.0060.00615.04
7.0.160.0100.01015.32
7.0.150.0090.00615.23
7.0.140.0040.04118.55
7.0.130.0060.00915.24
7.0.120.0040.00814.91
7.0.110.0100.00314.93
7.0.100.0060.00914.98
7.0.90.0130.00015.09
7.0.80.0070.00715.25
7.0.70.0060.00615.06
7.0.60.0100.02217.40
7.0.50.0120.04016.59
7.0.40.0100.04416.57
7.0.30.0120.03216.69
7.0.20.0150.04616.79
7.0.10.0100.04516.42
7.0.00.0100.04016.75
5.6.380.0030.00713.99
5.6.370.0040.01113.89
5.6.360.0040.01114.14
5.6.350.0070.00714.08
5.6.340.0070.00714.22
5.6.330.0100.00614.13
5.6.320.0080.00814.15
5.6.310.0060.00613.80
5.6.300.0040.00414.06
5.6.290.0030.01013.99
5.6.280.0020.04317.40
5.6.270.0080.00413.86
5.6.260.0070.00713.80
5.6.250.0110.00413.96
5.6.240.0000.01214.32
5.6.230.0030.00914.02
5.6.220.0090.00314.15
5.6.210.0050.04817.38
5.6.200.0060.04516.13
5.6.190.0060.03517.18
5.6.180.0240.02017.39
5.6.170.0190.04317.40
5.6.160.0030.02617.17
5.6.150.0090.03615.98
5.6.140.0050.04316.19
5.6.130.0110.02515.95
5.6.120.0070.04317.43
5.6.110.0010.04617.50
5.6.100.0030.04017.54
5.6.90.0060.02517.47
5.6.80.0120.04217.04
5.6.70.1990.02317.19
5.6.60.0080.00414.02
5.6.50.0110.00013.97
5.6.40.0100.00714.17
5.6.30.0040.01113.86
5.6.20.0040.01114.11
5.6.10.0000.01414.11
5.6.00.0040.01413.97
5.5.380.0080.00311.01
5.5.370.0030.00710.99
5.5.360.0050.00310.76
5.5.350.0060.04315.56
5.5.340.0030.04014.26
5.5.330.0080.03515.68
5.5.320.0170.04315.70
5.5.310.0050.02715.58
5.5.300.0070.04114.40
5.5.290.0070.03214.40
5.5.280.0000.04715.62
5.5.270.0090.02815.88
5.5.260.0030.04215.78
5.5.250.0070.04215.71
5.5.240.0130.03915.47
5.5.230.0060.00010.94
5.5.220.0000.01010.79
5.5.210.0050.00310.74
5.5.200.0060.00310.74
5.5.190.0030.00310.79
5.5.180.0060.00010.85
5.5.170.0000.00610.66
5.5.160.0070.00710.95
5.5.150.0070.00310.43
5.5.140.0030.01010.92
5.5.130.0030.00710.83
5.5.120.0120.00010.61
5.5.110.0030.00710.72
5.5.100.0040.00710.89
5.5.90.0060.00610.76
5.5.80.0080.00311.04
5.5.70.0030.01010.63
5.5.60.0120.00010.86
5.5.50.0000.01211.01
5.5.40.0100.00310.69
5.5.30.0030.01010.71
5.5.20.0080.00311.07
5.5.10.0040.00910.77
5.5.00.0090.00311.00
5.4.450.0280.03615.23
5.4.440.0440.03415.15
5.4.430.0560.03215.10
5.4.420.0470.02815.21
5.4.410.0520.03115.29
5.4.400.0520.03714.93
5.4.390.0740.02514.95
5.4.380.0220.03014.84
5.4.370.0250.04314.75
5.4.360.0320.02814.75
5.4.350.0270.04114.74
5.4.340.0170.02814.75
5.4.330.0000.00710.84
5.4.320.0040.02211.60
5.4.310.0030.02311.69
5.4.300.0070.01811.57
5.4.290.0040.02411.47
5.4.280.0050.01911.44
5.4.270.0070.02211.43
5.4.260.0060.02011.63
5.4.250.0040.02311.48
5.4.240.0090.01811.51
5.4.230.0080.02011.68
5.4.220.0080.01911.47
5.4.210.0060.02011.57
5.4.200.0060.02211.56
5.4.190.0050.02111.56
5.4.180.0020.02311.49
5.4.170.0050.02411.60
5.4.160.0050.02211.38
5.4.150.0070.01911.52
5.4.140.0050.02111.33
5.4.130.0050.02111.49
5.4.120.0030.02111.36
5.4.110.0080.01611.31
5.4.100.0040.02311.24
5.4.90.0070.01811.29
5.4.80.0060.02011.39
5.4.70.0040.02111.41
5.4.60.0070.01911.27
5.4.50.0060.02211.41
5.4.40.0030.02211.26
5.4.30.0040.01911.32
5.4.20.0060.02111.37
5.4.10.0090.01711.16
5.4.00.0070.02111.16
5.3.290.0040.02611.60
5.3.280.0060.02511.49
5.3.270.0060.02311.49
5.3.260.0050.02111.52
5.3.250.0060.02111.39
5.3.240.0060.02011.46
5.3.230.0050.02211.31
5.3.220.0060.02211.46
5.3.210.0030.02411.31
5.3.200.0040.02311.46
5.3.190.0070.02111.51
5.3.180.0070.02111.55
5.3.170.0060.02911.56
5.3.160.0100.03311.52
5.3.150.0040.03511.44
5.3.140.0020.03211.53
5.3.130.0070.02611.49
5.3.120.0080.02111.46
5.3.110.0070.02111.53
5.3.100.0040.02011.10
5.3.90.0040.02211.18
5.3.80.0090.01711.05
5.3.70.0040.02011.18
5.3.60.0050.02111.19
5.3.50.0040.02211.17
5.3.40.0050.02011.14
5.3.30.0040.02111.13
5.3.20.0040.02211.00
5.3.10.0060.01810.76
5.3.00.0050.02110.91
5.2.170.0040.0179.44
5.2.160.0040.0179.44
5.2.150.0020.0209.44
5.2.140.0050.0149.43
5.2.130.0040.0149.41
5.2.120.0030.0189.42
5.2.110.0050.0179.42
5.2.100.0070.0159.42
5.2.90.0050.0159.42
5.2.80.0070.0179.41
5.2.70.0050.0199.42
5.2.60.0050.0219.39
5.2.50.0050.0209.38
5.2.40.0040.0169.37
5.2.30.0030.0189.35
5.2.20.0030.0199.35
5.2.10.0050.0179.30
5.2.00.0050.0179.23
5.1.60.0060.0138.87
5.1.50.0060.0118.87
5.1.40.0040.0178.86
5.1.30.0050.0209.04
5.1.20.0080.0259.05
5.1.10.0060.0178.91
5.1.00.0060.0148.91
5.0.50.0040.0128.15
5.0.40.0020.0148.08
5.0.30.0060.0157.98
5.0.20.0030.0137.97
5.0.10.0050.0107.96
5.0.00.0050.0187.96
4.4.90.0020.0127.22
4.4.80.0030.0097.21
4.4.70.0040.0107.21
4.4.60.0020.0117.21
4.4.50.0020.0127.21
4.4.40.0030.0157.18
4.4.30.0030.0117.21
4.4.20.0030.0107.25
4.4.10.0040.0087.25
4.4.00.0040.0147.21
4.3.110.0050.0077.16
4.3.100.0020.0127.16
4.3.90.0030.0117.14
4.3.80.0020.0207.12
4.3.70.0010.0127.14
4.3.60.0040.0107.14
4.3.50.0010.0127.14
4.3.40.0040.0127.10
4.3.30.0030.0096.48
4.3.20.0030.0096.47
4.3.10.0010.0096.45
4.3.00.0030.0128.37

preferences:
55.28 ms | 401 KiB | 5 Q