3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private function __construct() {} public static function greet() { echo "Hi!\n"; } } A::greet(); new A();

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.0060.00319.52
8.3.140.0060.00916.76
8.3.130.0030.00618.73
8.3.120.0060.00318.79
8.3.110.0000.00920.94
8.3.100.0120.00316.50
8.3.90.0160.00026.77
8.3.80.0200.00730.84
8.3.70.0410.00730.84
8.3.60.0330.01530.84
8.3.50.0140.00430.84
8.3.40.0300.00830.84
8.3.30.0400.00730.84
8.3.20.0380.00630.84
8.3.10.0300.00930.84
8.3.00.0350.00830.84
8.2.260.0140.00416.70
8.2.250.0070.00718.38
8.2.240.0070.00318.72
8.2.230.0040.00822.58
8.2.220.0120.00624.06
8.2.210.0070.00726.77
8.2.200.0290.00730.84
8.2.190.0280.00930.84
8.2.180.0330.00730.84
8.2.170.0380.00830.84
8.2.160.0340.01130.84
8.2.150.0200.00030.84
8.2.140.0380.00430.84
8.2.130.0330.01030.84
8.2.120.0250.01530.84
8.2.110.0500.00630.84
8.2.100.0500.00330.84
8.2.90.0270.01530.84
8.2.80.0310.01230.84
8.2.70.0370.00630.84
8.2.60.0370.01130.84
8.2.50.0340.00730.84
8.2.40.0230.01230.84
8.2.30.0330.00730.84
8.2.20.0250.00830.84
8.2.10.0330.00730.84
8.2.00.0350.00330.84
8.1.300.0120.00618.53
8.1.290.0200.02030.84
8.1.280.0270.01330.84
8.1.270.0460.00330.84
8.1.260.0340.00830.84
8.1.250.0260.00830.84
8.1.240.0240.01530.84
8.1.230.0280.01030.84
8.1.220.0290.00830.84
8.1.210.0290.00430.84
8.1.200.0300.01030.84
8.1.190.0340.00430.84
8.1.180.0290.01030.84
8.1.170.0280.00930.84
8.1.160.0280.00930.84
8.1.150.0290.00830.84
8.1.140.0290.00330.84
8.1.130.0470.00930.84
8.1.120.0270.01130.84
8.1.110.0340.00330.84
8.1.100.0370.00030.84
8.1.90.0280.00930.84
8.1.80.0320.00730.84
8.1.70.0340.00430.84
8.1.60.0360.00430.84
8.1.50.0340.00630.84
8.1.40.0270.01430.84
8.1.30.0310.00530.84
8.1.20.0260.01130.84
8.1.10.0330.00730.84
8.1.00.0340.00830.84

preferences:
27.6 ms | 403 KiB | 5 Q