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 insteadof method; } function method($list=[]) { $list = parent::method($list); $list[] = 'Child::method'; return($list); } } $child = new Child(); echo(implode(' <= ', $child->method())."\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.0070.00718.43
8.3.50.0110.00821.20
8.3.40.0070.00718.59
8.3.30.0080.00818.54
8.3.20.0040.00420.29
8.3.10.0050.00221.85
8.3.00.0080.00021.73
8.2.180.0040.01116.38
8.2.170.0110.00322.96
8.2.160.0060.00820.56
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00020.66
8.2.120.0030.00526.35
8.2.110.0040.00422.29
8.2.100.0060.00617.84
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0000.00917.61
8.2.60.0000.00817.77
8.2.50.0040.00418.09
8.2.40.0040.00720.45
8.2.30.0040.00419.38
8.2.20.0000.00717.62
8.2.10.0000.00818.04
8.2.00.0040.00417.95
8.1.280.0070.00725.92
8.1.270.0060.00322.13
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.37
8.1.230.0030.00720.88
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0040.00418.54
8.1.160.0000.00720.61
8.1.150.0050.00318.83
8.1.140.0040.00419.43
8.1.130.0000.00717.71
8.1.120.0030.00317.42
8.1.110.0030.00517.38
8.1.100.0040.00417.38
8.1.90.0000.00817.30
8.1.80.0000.00717.35
8.1.70.0070.00017.30
8.1.60.0120.00017.37
8.1.50.0040.00417.42
8.1.40.0030.00617.52
8.1.30.0050.00317.54
8.1.20.0040.00417.48
8.1.10.0070.00017.40
8.1.00.0000.00817.31
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0070.00018.32
8.0.270.0020.00517.18
8.0.260.0080.00017.16
8.0.250.0070.00016.85
8.0.240.0070.00016.96
8.0.230.0040.00416.94
8.0.220.0080.00016.92
8.0.210.0060.00316.75
8.0.200.0050.00516.70
8.0.190.0000.00816.96
8.0.180.0030.00516.82
8.0.170.0040.00416.85
8.0.160.0000.00716.82
8.0.150.0000.00716.96
8.0.140.0030.00316.91
8.0.130.0030.00313.28
8.0.120.0080.00016.81
8.0.110.0040.00416.89
8.0.100.0040.00416.88
8.0.90.0000.00716.73
8.0.80.0000.02316.84
8.0.70.0000.00716.91
8.0.60.0030.00517.01
8.0.50.0000.00716.94
8.0.30.0090.01017.06
8.0.20.0140.00517.40
8.0.10.0000.00817.12
8.0.00.0100.00816.78
7.4.330.0000.00516.79
7.4.320.0000.00616.44
7.4.300.0030.00316.47
7.4.290.0000.00716.43
7.4.280.0000.00816.46
7.4.270.0030.00416.35
7.4.260.0030.00316.57
7.4.250.0000.00716.30
7.4.240.0030.00316.47
7.4.230.0030.00316.33
7.4.220.0110.00816.44
7.4.210.0060.01016.49
7.4.200.0040.00416.49
7.4.160.0100.00716.71
7.4.150.0140.00417.40
7.4.140.0060.01317.86
7.4.130.0120.00816.47
7.4.120.0110.00716.39
7.4.110.0100.01016.43
7.4.100.0120.01216.32
7.4.90.0030.01316.71
7.4.80.0060.01119.39
7.4.70.0080.00816.48
7.4.60.0110.00516.52
7.4.50.0000.01616.68
7.4.40.0120.00616.36
7.4.30.0160.00616.51
7.4.00.0110.00415.05
7.3.330.0030.00313.18
7.3.320.0050.00013.32
7.3.310.0070.00016.19
7.3.300.0030.00316.32
7.3.290.0030.00316.29
7.3.280.0070.01016.33
7.3.270.0120.00617.40
7.3.260.0030.01416.33
7.3.250.0090.01016.32
7.3.240.0050.01216.41
7.3.230.0120.00616.48
7.3.210.0120.00916.36
7.3.200.0070.01419.39
7.3.190.0040.01316.24
7.3.180.0060.00916.52
7.3.170.0040.01516.40
7.3.160.0090.00916.37
7.2.330.0070.01716.46
7.2.320.0090.00916.28
7.2.310.0090.00616.16
7.2.300.0150.00316.50
7.2.290.0030.01216.48
7.2.60.0040.00816.72
7.2.00.0040.01419.01
7.1.200.0050.00515.55
7.1.100.0040.00818.16
7.1.70.0130.00017.12
7.1.60.0110.01419.40
7.1.50.0040.00716.95
7.1.00.0000.08022.29
7.0.200.0490.00714.70
7.0.60.0300.06320.00
7.0.50.0030.08017.84
7.0.40.0070.08320.11
7.0.30.0430.07020.09
7.0.20.0330.06320.16
7.0.10.0000.04720.12
7.0.00.0000.05020.27
5.6.280.0070.05321.13
5.6.210.0100.06020.71
5.6.200.0130.07718.16
5.6.190.0030.06020.75
5.6.180.0370.07020.57
5.6.170.0330.06020.55
5.6.160.0070.07720.52
5.6.150.0100.03318.18
5.6.140.0170.03018.29
5.6.130.0070.04018.25
5.6.120.0100.07721.15
5.6.110.0130.07721.09
5.6.100.0000.04321.01
5.6.90.0170.07020.99
5.6.80.0030.04320.41
5.5.350.0200.06320.42
5.5.340.0100.06017.95
5.5.330.0030.04320.23
5.5.320.0630.07020.25
5.5.310.0330.03720.30
5.5.300.0100.06718.08
5.5.290.0070.05718.02
5.5.280.0070.08320.85
5.5.270.0100.07020.98
5.5.260.0100.06320.80
5.5.250.0070.08720.67
5.5.240.0130.04320.29

preferences:
50.51 ms | 401 KiB | 5 Q