3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { function method($list=[]) { $list[] = 'Base::method'; return($list); } } trait MyTrait { function method($list=[]) { $list = parent::method($list); $list[] = 'MyTrait::method'; return($list); } } class Child extends Base { use MyTrait { MyTrait::method as foo; } function method($list=[]) { $list = parent::method($list); $list[] = 'Child::method'; return($list); } } $child = new Child(); echo(implode(' <= ', $child->foo())."\n");

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.00316.63
8.3.50.0140.00821.21
8.3.40.0140.00018.98
8.3.30.0070.00718.67
8.3.20.0000.00820.34
8.3.10.0050.00221.90
8.3.00.0050.00221.73
8.2.180.0070.00716.63
8.2.170.0070.00722.96
8.2.160.0130.00320.53
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00420.69
8.2.120.0050.00226.35
8.2.110.0030.00619.16
8.2.100.0000.01117.72
8.2.90.0040.00419.36
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00818.04
8.2.50.0040.00418.10
8.2.40.0060.00620.52
8.2.30.0000.00719.50
8.2.20.0000.00817.75
8.2.10.0040.00418.26
8.2.00.0040.00418.04
8.1.280.0030.01225.92
8.1.270.0040.00421.99
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0140.00019.67
8.1.220.0000.00817.78
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0000.00917.23
8.1.180.0050.00318.10
8.1.170.0040.00418.56
8.1.160.0050.00320.76
8.1.150.0040.00418.77
8.1.140.0030.00619.58
8.1.130.0030.00317.79
8.1.120.0030.00417.41
8.1.110.0070.00317.43
8.1.100.0000.00717.48
8.1.90.0060.00317.45
8.1.80.0000.00817.36
8.1.70.0060.00317.34
8.1.60.0070.00317.46
8.1.50.0060.00317.48
8.1.40.0000.00917.52
8.1.30.0030.00617.72
8.1.20.0050.00317.42
8.1.10.0040.00417.46
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0000.00818.45
8.0.270.0000.00717.22
8.0.260.0000.00617.26
8.0.250.0020.00516.91
8.0.240.0000.00816.98
8.0.230.0050.00216.97
8.0.220.0030.00716.91
8.0.210.0070.00016.93
8.0.200.0050.00316.82
8.0.190.0000.00716.94
8.0.180.0030.00516.89
8.0.170.0040.00416.91
8.0.160.0070.00016.86
8.0.150.0030.00516.75
8.0.140.0030.00316.84
8.0.130.0000.00613.31
8.0.120.0030.00516.88
8.0.110.0040.00416.90
8.0.100.0050.00216.96
8.0.90.0040.00416.84
8.0.80.0100.01316.83
8.0.70.0070.00016.76
8.0.60.0050.00216.96
8.0.50.0000.00716.82
8.0.30.0140.00517.03
8.0.20.0110.01117.40
8.0.10.0040.00417.05
8.0.00.0110.00816.81
7.4.330.0020.00216.84
7.4.320.0000.00616.52
7.4.300.0000.00616.42
7.4.290.0070.00016.59
7.4.280.0000.00816.55
7.4.270.0030.00316.52
7.4.260.0070.00016.48
7.4.250.0090.00016.46
7.4.240.0050.00216.56
7.4.230.0070.00016.54
7.4.220.0030.01516.43
7.4.210.0080.01016.50
7.4.200.0000.00716.40
7.4.160.0030.01216.66
7.4.150.0070.01017.40
7.4.140.0120.01217.86
7.4.130.0060.01116.43
7.4.120.0070.01216.47
7.4.110.0120.00616.45
7.4.100.0070.01016.63
7.4.90.0090.00816.45
7.4.80.0140.00319.39
7.4.70.0140.00316.46
7.4.60.0150.00616.51
7.4.50.0100.00716.55
7.4.40.0200.00316.35
7.4.30.0080.00916.68
7.4.00.0030.01315.00
7.3.330.0000.00513.32
7.3.320.0000.00613.18
7.3.310.0070.00016.21
7.3.300.0030.00316.26
7.3.290.0040.00216.30
7.3.280.0090.01116.28
7.3.270.0120.00617.40
7.3.260.0090.00916.27
7.3.250.0100.00816.41
7.3.240.0040.01216.23
7.3.230.0030.01416.39
7.3.210.0100.01016.61
7.3.200.0090.00919.39
7.3.190.0100.01016.38
7.3.180.0030.01216.56
7.3.170.0070.01016.41
7.3.160.0080.00816.57
7.2.330.0120.00616.56
7.2.320.0090.00916.80
7.2.310.0090.00916.68
7.2.300.0070.01016.50
7.2.290.0100.00616.59
7.2.00.0040.00819.22
7.1.100.0000.01118.18
7.1.70.0000.00816.78
7.1.60.0120.01219.40
7.1.50.0130.01016.45
7.1.00.0070.07322.33
7.0.200.0460.00714.34
7.0.60.0200.04319.91
7.0.50.0100.04317.86
7.0.40.0100.06020.18
7.0.30.0330.07020.30
7.0.20.0430.06020.08
7.0.10.0170.05020.03
7.0.00.0070.08320.13
5.6.280.0030.07321.15
5.6.210.0100.06720.65
5.6.200.0070.07718.19
5.6.190.0030.05720.55
5.6.180.0400.06320.68
5.6.170.0300.04320.47
5.6.160.0100.08020.54
5.6.150.0030.04318.29
5.6.140.0130.06018.18
5.6.130.0030.04718.18
5.6.120.0030.09320.90
5.6.110.0070.06020.98
5.6.100.0130.07721.01
5.6.90.0100.07321.11
5.6.80.0070.08320.38
5.5.350.0370.06720.41
5.5.340.0100.09317.96
5.5.330.0070.04320.31
5.5.320.0200.05320.42
5.5.310.0230.07720.28
5.5.300.0100.06017.96
5.5.290.0000.05717.96
5.5.280.0000.04320.88
5.5.270.0030.06320.77
5.5.260.0330.06020.77
5.5.250.0100.07720.59
5.5.240.0300.06320.05

preferences:
38.15 ms | 401 KiB | 5 Q