3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function __construct() {} public function test() { print("Hey, I'm an instance of class A!"); } } $reflClass = new ReflectionClass(A::class); $instance = $reflClass->newInstanceWithoutConstructor(); $instance->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.4.10.0030.00719.38
8.3.140.0100.00018.80
8.3.130.0040.00418.52
8.3.120.0060.00318.94
8.3.110.0070.01118.59
8.3.100.0110.00016.39
8.3.90.0150.00026.77
8.3.80.0440.00630.84
8.3.70.0300.01530.84
8.3.60.0320.00430.84
8.3.50.0130.00430.84
8.3.40.0240.00530.84
8.3.30.0360.00530.84
8.3.20.0360.00130.84
8.3.10.0270.01030.84
8.3.00.0310.01130.84
8.2.250.0040.00416.69
8.2.240.0120.00817.26
8.2.230.0080.00020.94
8.2.220.0080.00024.06
8.2.210.0080.00026.77
8.2.200.0300.00530.84
8.2.190.0250.01030.84
8.2.180.0260.00630.84
8.2.170.0210.00830.84
8.2.160.0220.01030.84
8.2.150.0250.00830.84
8.2.140.0260.00530.84
8.2.130.0280.00430.84
8.2.120.0200.00630.84
8.2.110.0200.00030.84
8.2.100.0100.00930.84
8.2.90.0240.00630.84
8.2.80.0270.00730.84
8.2.70.0220.00330.84
8.2.60.0160.00730.84
8.2.50.0310.00230.84
8.2.40.0260.00530.84
8.2.30.0200.00830.84
8.2.20.0260.00230.84
8.2.10.0240.00430.84
8.2.00.0190.00730.84
8.1.300.0000.00915.98
8.1.290.0230.00830.84
8.1.280.0220.00730.84
8.1.270.0200.00330.84
8.1.260.0250.00630.84
8.1.250.0290.01030.84
8.1.240.0250.00430.84
8.1.230.0200.00930.84
8.1.220.0240.01030.84
8.1.210.0240.00630.84
8.1.200.0320.00530.84
8.1.190.0290.00730.84
8.1.180.0270.01130.84
8.1.170.0300.01030.84
8.1.160.0300.00630.84
8.1.150.0260.00530.84
8.1.140.0160.01030.84
8.1.130.0310.00430.84
8.1.120.0320.00830.84
8.1.110.0350.00730.84
8.1.100.0230.01730.84
8.1.90.0300.00630.84
8.1.80.0180.01030.84
8.1.70.0220.00830.84
8.1.60.0250.00630.84
8.1.50.0270.00830.84
8.1.40.0250.00730.84
8.1.30.0330.00330.84
8.1.20.0250.00830.84
8.1.10.0270.00330.84
8.1.00.0230.00830.84

preferences:
30.23 ms | 403 KiB | 5 Q