3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { public $password; } $user = new User(); $user->password = 'secret'; function foo($user) { throw new Exception(); } foo($user);

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.3.120.0030.01619.04
8.3.110.0100.00020.94
8.3.100.0090.00016.63
8.3.90.0050.00318.83
8.3.80.0370.01030.84
8.3.70.0410.01130.84
8.3.60.0320.01830.84
8.3.50.0130.00930.84
8.3.40.0240.00730.84
8.3.30.0330.00730.84
8.3.20.0420.00030.84
8.3.10.0380.01030.84
8.3.00.0390.01030.84
8.2.240.0040.01218.96
8.2.230.0090.00622.58
8.2.220.0070.00324.06
8.2.210.0090.00926.77
8.2.200.0150.00330.84
8.2.190.0350.00330.84
8.2.180.0270.01330.84
8.2.170.0270.00930.84
8.2.160.0400.00630.84
8.2.150.0230.01130.84
8.2.140.0190.01030.84
8.2.130.0150.00530.84
8.2.120.0130.00630.84
8.2.110.0310.00330.84
8.2.100.0220.00630.84
8.2.90.0280.00030.84
8.2.80.0320.00730.84
8.2.70.0170.00230.84
8.2.60.0350.01230.84
8.2.50.0250.01130.84
8.2.40.0310.00630.84
8.2.30.0470.01230.84
8.2.20.0360.00630.84
8.2.10.0200.01330.84
8.2.00.0260.00630.84
8.1.300.0040.00419.59
8.1.290.0360.00330.84
8.1.280.0260.01430.84
8.1.270.0330.01030.84
8.1.260.0240.01030.84
8.1.250.0280.00730.84
8.1.240.0270.00830.84
8.1.230.0340.00430.84
8.1.220.0350.00730.84
8.1.210.0360.00730.84
8.1.200.0340.01030.84
8.1.190.0250.00630.84
8.1.180.0190.00030.84
8.1.170.0290.01030.84
8.1.160.0180.00530.84
8.1.150.0160.00830.84
8.1.140.0110.00630.84
8.1.130.0130.00430.84
8.1.120.0170.00430.84
8.1.110.0150.00430.84
8.1.100.0170.00030.84
8.1.90.0130.00430.84
8.1.80.0130.00430.84
8.1.70.0140.00330.84
8.1.60.0180.00030.84
8.1.50.0090.00930.84
8.1.40.0110.00730.84
8.1.30.0350.00330.84
8.1.20.0370.00430.84
8.1.10.0390.00630.84
8.1.00.0350.00630.84

preferences:
27.76 ms | 403 KiB | 5 Q