3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Foo { public function hello(): string { return "Hello from Foo!"; } } class Bar { use Foo { hello as private somethingElse; } } $bar = new Bar(); var_dump($bar->hello()); // Throws var_dump($bar->somethingElse());

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.4.140.0160.00617.89
8.4.130.0060.00418.03
8.4.120.0110.00924.33
8.4.110.0110.00818.80
8.4.100.0130.00717.97
8.4.90.0110.00517.88
8.4.80.0050.00417.95
8.4.70.0100.00718.12
8.4.60.0070.00518.16
8.4.50.0110.00720.59
8.4.40.0170.00317.63
8.4.30.0270.00717.87
8.4.20.0440.00517.63
8.4.10.0410.00717.58
8.3.260.0110.00816.45
8.3.250.0070.00218.89
8.3.240.0110.00519.05
8.3.230.0070.00216.86
8.3.220.0120.00416.92
8.3.210.0080.01216.75
8.3.200.0090.00918.80
8.3.190.0080.00017.18
8.3.180.0120.00618.47
8.3.170.0060.00317.14
8.3.160.0350.00716.51
8.3.150.0320.00916.59
8.3.140.0340.00516.57
8.3.130.0330.00916.41
8.3.120.0290.01116.44
8.3.110.0360.00416.57
8.3.100.0410.00416.47
8.3.90.0350.00816.38
8.3.80.0350.00916.31
8.3.70.0330.00716.61
8.3.60.0330.00816.44
8.3.50.0310.00816.61
8.3.40.0340.00617.36
8.3.30.0260.00917.41
8.3.20.0260.01217.58
8.3.10.0270.01117.41
8.3.00.0190.00917.48
8.2.290.0090.01020.57
8.2.280.0130.00416.74
8.2.270.0230.00716.69
8.2.260.0240.00616.60
8.2.250.0210.01416.67
8.2.240.0310.00616.51
8.2.230.0270.01116.63
8.2.220.0260.01216.60
8.2.210.0350.00416.48
8.2.200.0220.01616.59
8.2.190.0310.00716.48
8.2.180.0310.00716.50
8.2.170.0300.00917.56
8.2.160.0360.00717.64
8.2.150.0320.00717.60
8.2.140.0320.00517.61
8.2.130.0390.00617.37
8.2.120.0330.00817.51
8.2.110.0310.00917.61
8.2.100.0290.01017.53
8.2.90.0250.01417.59
8.2.80.0310.00517.55
8.2.70.0230.01717.48
8.2.60.0240.01417.56
8.2.50.0310.00717.47
8.2.40.0290.00817.56
8.2.30.0300.00917.48
8.2.20.0320.00517.37
8.2.10.0290.00617.30
8.2.00.0400.00617.13
8.1.320.0170.00418.12

preferences:
38.03 ms | 403 KiB | 5 Q