3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { public function get($name) { return 'poop'; } } class p { public function get($name) { return 'parent'; } } class c extends p { use A { get as getPoop; } } $a = new c(); var_dump($a->get('anything'));

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.00716.50
8.3.50.0090.00616.51
8.3.40.0080.00818.38
8.3.30.0070.00718.59
8.3.20.0040.00418.38
8.3.10.0060.00321.84
8.3.00.0070.00021.91
8.2.180.0150.00018.41
8.2.170.0210.00022.96
8.2.160.0100.00720.55
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0030.00619.82
8.2.120.0040.00426.35
8.2.110.0090.00020.91
8.2.100.0040.00718.22
8.2.90.0040.00419.03
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0060.00317.93
8.2.50.0000.00818.10
8.2.40.0050.00320.42
8.2.30.0040.00419.24
8.2.20.0070.00017.97
8.2.10.0070.00017.93
8.2.00.0080.00017.55
8.1.280.0060.01025.92
8.1.270.0050.00322.19
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0060.00322.11
8.1.230.0040.00720.38
8.1.220.0090.00017.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0080.00017.00
8.1.180.0040.00418.10
8.1.170.0040.00418.71
8.1.160.0040.00420.60
8.1.150.0070.00020.29
8.1.140.0040.00419.48
8.1.130.0050.00217.60
8.1.120.0040.00317.39
8.1.110.0000.00817.50
8.1.100.0070.00017.46
8.1.90.0040.00417.51
8.1.80.0040.00417.43
8.1.70.0000.00817.47
8.1.60.0040.00417.59
8.1.50.0040.00417.53
8.1.40.0000.00917.48
8.1.30.0080.00017.61
8.1.20.0000.00817.56
8.1.10.0000.00717.46
8.1.00.0030.00517.32
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.43
8.0.270.0030.00317.21
8.0.260.0040.00417.24
8.0.250.0000.00717.02
8.0.240.0070.00016.91
8.0.230.0030.00316.88
8.0.220.0000.00716.77
8.0.210.0000.00616.88
8.0.200.0030.00316.80
8.0.190.0070.00016.88
8.0.180.0040.00416.89
8.0.170.0090.00316.96
8.0.160.0080.00016.84
8.0.150.0040.00416.71
8.0.140.0070.00016.73
8.0.130.0030.00313.26
8.0.120.0040.00416.67
8.0.110.0040.00416.92
8.0.100.0060.00316.84
8.0.90.0020.00516.82
8.0.80.0070.01016.90
8.0.70.0040.00416.75
8.0.60.0070.00016.74
8.0.50.0020.00516.82
8.0.30.0140.00617.08
8.0.20.0110.00917.40
8.0.10.0000.00816.96
8.0.00.0090.00916.73
7.4.330.0000.00615.55
7.4.320.0030.00316.59
7.4.300.0000.00716.59
7.4.290.0030.00316.57
7.4.280.0040.00416.39
7.4.270.0000.00716.60
7.4.260.0030.00616.38
7.4.250.0000.00816.48
7.4.240.0000.00716.51
7.4.230.0030.00316.39
7.4.220.0030.01616.57
7.4.210.0050.01016.43
7.4.200.0030.00316.61
7.4.160.0080.00816.48
7.4.150.0050.01417.40
7.4.140.0110.00817.86
7.4.130.0100.00616.42
7.4.120.0080.01116.52
7.4.110.0040.01516.39
7.4.100.0170.00016.47
7.4.90.0110.01116.48
7.4.80.0090.01119.39
7.4.70.0080.00816.50
7.4.60.0000.01916.51
7.4.50.0100.00716.55
7.4.40.0100.01016.56
7.4.30.0030.01416.43
7.4.00.0050.00514.73
7.3.330.0030.00313.16
7.3.320.0030.00313.26
7.3.310.0000.00716.15
7.3.300.0070.00016.27
7.3.290.0030.01216.23
7.3.280.0120.00516.32
7.3.270.0140.00417.40
7.3.260.0140.00716.56
7.3.250.0110.00816.40
7.3.240.0120.00916.37
7.3.230.0120.00616.41
7.3.210.0090.00616.17
7.3.200.0100.01016.16
7.3.190.0110.01116.42
7.3.180.0160.00616.47
7.3.170.0060.01016.38
7.3.160.0070.01016.41
7.2.330.0060.01316.63
7.2.320.0030.02116.58
7.2.310.0100.00616.64
7.2.300.0030.01316.54
7.2.290.0040.01616.67
7.2.60.0040.01116.89
7.2.00.0030.00919.43
7.1.200.0120.00915.77
7.1.100.0000.01717.96
7.1.70.0000.00816.93
7.1.60.0090.00916.93
7.1.50.0070.00717.02
7.1.00.0070.07322.40
7.0.200.0130.00014.71
7.0.120.0170.04722.10
7.0.110.0100.05321.95
7.0.100.0100.07022.06
7.0.90.0030.06022.07
7.0.80.0130.05022.05
7.0.70.0000.06022.19
7.0.60.0100.05022.15
7.0.50.0030.05721.98
7.0.40.0030.05722.21
7.0.30.0030.05722.12
7.0.20.0100.05022.10
7.0.10.0070.06322.14
7.0.00.0100.07722.10
5.6.270.0070.07020.84
5.6.260.0100.05321.09
5.6.250.0100.05321.05
5.6.240.0070.05320.80
5.6.230.0070.06020.87
5.6.220.0100.05020.81
5.6.210.0030.06020.95
5.6.200.0030.06020.80
5.6.190.0070.05720.86
5.6.180.0030.06020.76
5.6.170.0130.04721.01
5.6.160.0070.05720.86
5.6.150.0070.05720.75
5.6.140.0070.05720.80
5.6.130.0170.04320.98
5.6.120.0100.05320.95
5.6.110.0070.05720.82
5.6.100.0030.06320.99
5.6.90.0130.05320.73
5.6.80.0070.05320.41
5.6.70.0070.05320.17
5.6.60.0070.07020.19
5.6.50.0130.06020.18
5.6.40.0030.05720.36
5.6.30.0070.05720.42
5.6.20.0070.05720.20
5.6.10.0100.05020.44
5.6.00.0070.05020.17

preferences:
49.68 ms | 401 KiB | 5 Q