3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait Foo { function test() { var_dump( $this->whatever() ); } } class A { use Foo; public function whatever() { return 42; } } class B { use Foo; private function whatever() { return 'hello'; } } class C { use Foo; } (new A)->test(); (new B)->test(); (new C)->test();

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.5.80.0120.00717.09
8.5.70.0250.00517.01
8.5.60.0310.00816.89
8.5.50.0350.00616.56
8.5.40.0330.01016.77
8.5.30.0120.00616.90
8.5.20.0370.00316.91
8.5.10.0220.00716.70
8.5.00.0150.00616.70
8.4.230.0280.01019.49
8.4.220.0270.00519.75
8.4.210.0080.00419.64
8.4.200.0170.00419.27
8.4.190.0190.00119.72
8.4.180.0150.00419.51
8.4.170.0180.00319.79
8.4.160.0140.00519.68
8.4.150.0150.00519.68
8.4.140.0140.00717.79
8.4.130.0270.00717.67
8.4.120.0200.00517.97
8.4.110.0130.00817.91
8.4.100.0310.01017.57
8.4.90.0210.00417.84
8.4.80.0340.00417.91
8.4.70.0230.00617.93
8.4.60.0200.00417.87
8.4.50.0180.00417.79
8.4.40.0180.00318.00
8.4.30.0160.00417.59
8.4.20.0160.00617.77
8.4.10.0140.00717.79
8.3.320.0150.00518.38
8.3.310.0140.00518.42
8.3.300.0230.00718.30
8.3.290.0250.00918.32
8.3.280.0130.00518.27
8.3.270.0150.00516.79
8.3.260.0150.00516.68
8.3.250.0200.00716.75
8.3.240.0170.00416.61
8.3.230.0230.00716.65
8.3.220.0180.00616.60
8.3.210.0290.00516.86
8.3.200.0190.00416.77
8.3.190.0230.01016.74
8.3.180.0230.00616.62
8.3.170.0300.00716.56
8.3.160.0170.00316.71
8.3.150.0190.00316.68
8.3.140.0140.00516.60
8.3.130.0160.00416.64
8.3.120.0180.00116.69
8.3.110.0300.00616.81
8.3.100.0250.00416.72
8.3.90.0180.00516.56
8.3.80.0230.00616.70
8.3.70.0140.00316.54
8.3.60.0160.00416.74
8.3.50.0170.00316.83
8.3.40.0240.00417.75
8.3.30.0120.00517.81
8.3.20.0140.00217.94
8.3.10.0150.00617.80
8.3.00.0150.00617.64
8.2.320.0060.00517.99
8.2.310.0170.00317.71

preferences:
49.71 ms | 776 KiB | 5 Q