3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL ~ E_STRICT); class A { public function create() { return new static(); } } class B { public function meh() { return A::create(); } } $b = new B; echo get_class($b->meh()); // B ?

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)
5.4.130.0150.04312.03
5.4.120.0130.04311.99
5.4.110.0190.04811.99
5.4.100.0140.04311.99
5.4.90.0140.04311.99
5.4.80.0150.04311.99
5.4.70.0140.04311.98
5.4.60.0140.04311.98
5.4.50.0140.04311.98
5.4.40.0170.05211.97
5.4.30.0180.06011.97
5.4.20.0140.04411.96
5.4.10.0180.04711.97
5.4.00.0180.03811.46
5.3.230.0130.04912.71
5.3.220.0220.06112.68
5.3.210.0170.05612.68
5.3.200.0160.04312.68
5.3.190.0190.06412.67
5.3.180.0160.04312.67
5.3.170.0140.04612.67
5.3.160.0150.04512.67
5.3.150.0220.06012.67
5.3.140.0200.05012.66
5.3.130.0180.04412.66
5.3.120.0270.06812.66
5.3.110.0180.04412.66
5.3.100.0150.04712.12
5.3.90.0160.04312.08
5.3.80.0240.05712.08
5.3.70.0180.04412.07
5.3.60.0160.04412.07
5.3.50.0180.05112.00
5.3.40.0150.04512.00
5.3.30.0170.04211.94
5.3.20.0190.05111.72
5.3.10.0170.04011.68
5.3.00.0160.05111.66

preferences:
140.55 ms | 1394 KiB | 7 Q