3v4l.org

run code in 300+ PHP versions simultaneously
<?php class this {} function f(): this { return new this; } var_dump(f());

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.0130.01021.49
8.4.150.0030.00014.05
8.4.140.0130.00817.64
8.4.130.0120.00918.06
8.4.120.0060.00322.33
8.4.110.0060.00717.69
8.4.100.0120.00917.57
8.4.90.0100.01020.64
8.4.80.0110.00818.89
8.4.70.0110.00717.81
8.4.60.0130.00718.72
8.4.50.0160.00518.89
8.4.40.0090.00918.88
8.4.30.0110.00718.82
8.4.20.0120.00821.33
8.4.10.0030.00619.20
8.3.280.0110.01018.34
8.3.270.0070.01216.27
8.3.260.0140.00616.57
8.3.250.0070.00818.89
8.3.240.0130.00616.39
8.3.230.0040.00416.51
8.3.220.0090.00718.98
8.3.210.0040.00318.94
8.3.200.0040.00616.79
8.3.190.0080.01117.30
8.3.180.0060.00216.38
8.3.170.0090.00920.65
8.3.160.0120.00616.62
8.3.150.0120.00617.13
8.3.140.0000.00816.49
8.3.130.0110.00718.52
8.3.120.0000.00818.95
8.3.110.0030.00720.94
8.3.100.0060.00324.06
8.3.90.0070.00026.77
8.3.80.0410.00630.84
8.3.70.0400.00730.84
8.3.60.0350.01230.84
8.3.50.0100.00630.84
8.3.40.0240.00730.84
8.3.30.0220.01330.84
8.3.20.0380.00430.84
8.3.10.0230.00830.84
8.3.00.0250.00430.84
8.2.290.0100.00816.82
8.2.280.0090.00920.07
8.2.270.0070.01017.23
8.2.260.0070.00016.93
8.2.250.0040.00418.39
8.2.240.0030.00718.73
8.2.230.0040.00422.58
8.2.220.0030.00537.54
8.2.210.0000.00726.77
8.2.200.0200.00030.84
8.2.190.0230.00430.84
8.2.180.0340.00430.84
8.2.170.0350.00330.84
8.2.160.0300.00530.84
8.2.150.0250.01130.84
8.2.140.0420.00430.84
8.2.130.0360.00730.84
8.2.120.0340.01030.84
8.2.110.0330.00430.84
8.2.100.0200.00030.84
8.2.90.0170.00330.84
8.2.80.0140.00530.84
8.2.70.0190.00030.84
8.2.60.0130.00630.84
8.2.50.0160.00330.84
8.2.40.0170.00330.84
8.2.30.0310.00730.84
8.2.20.0320.00530.84
8.2.10.0280.01130.84
8.2.00.0290.01030.84
8.1.330.0130.00616.33
8.1.320.0100.00916.02
8.1.310.0000.00818.24
8.1.300.0060.00320.27
8.1.290.0440.00030.84
8.1.280.0330.00730.84
8.1.270.0320.01130.84
8.1.260.0360.00730.84
8.1.250.0390.00330.84
8.1.240.0240.01030.84
8.1.230.0300.00030.84
8.1.220.0290.00730.84
8.1.210.0430.00530.84
8.1.200.0340.00330.84
8.1.190.0300.00330.84
8.1.180.0360.00330.84
8.1.170.0190.01930.84
8.1.160.0280.00630.84
8.1.150.0360.00830.84
8.1.140.0290.00930.84
8.1.130.0300.00930.84
8.1.120.0250.00630.84
8.1.110.0300.00330.84
8.1.100.0170.00430.84
8.1.90.0160.00330.84
8.1.80.0070.01130.84
8.1.70.0170.00030.84
8.1.60.0150.00530.84
8.1.50.0240.00830.84
8.1.40.0290.01030.84
8.1.30.0200.01330.84
8.1.20.0190.00630.84
8.1.10.0130.00630.84
8.1.00.0180.00030.84

preferences:
78.13 ms | 403 KiB | 5 Q