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.5.00.0140.00720.05
8.4.150.0060.00716.95
8.4.140.0110.01117.91
8.4.130.0050.00317.97
8.4.120.0120.00923.80
8.4.110.0100.01118.99
8.4.100.0120.00817.74
8.4.90.0120.00720.52
8.4.80.0030.00519.07
8.4.70.0100.00918.96
8.4.60.0020.00622.38
8.4.50.0120.00920.25
8.4.40.0040.00417.95
8.4.30.0070.00720.51
8.4.20.0130.00619.80
8.4.10.0060.00319.52
8.3.280.0020.00014.05
8.3.270.0120.00716.61
8.3.260.0110.00916.70
8.3.250.0160.00319.04
8.3.240.0150.00416.42
8.3.230.0130.00616.67
8.3.220.0060.00118.84
8.3.210.0100.00916.62
8.3.200.0080.00416.66
8.3.190.0130.00517.06
8.3.180.0030.00516.66
8.3.170.0090.00920.64
8.3.160.0070.00318.80
8.3.150.0120.00616.93
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.290.0050.00316.80
8.2.280.0090.01219.96
8.2.270.0130.00617.07
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.330.0090.01016.04
8.1.320.0120.00817.81
8.1.310.0080.00018.00
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:
68.21 ms | 403 KiB | 5 Q