3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct(string $required) { var_dump($required); } } $t = new Foo();

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.00820.09
8.4.150.0020.00114.05
8.4.140.0130.00817.84
8.4.130.0050.00417.95
8.4.120.0090.00920.58
8.4.110.0120.00822.61
8.4.100.0120.00917.89
8.4.90.0060.00617.93
8.4.80.0120.00818.01
8.4.70.0050.00317.80
8.4.60.0080.01018.75
8.4.50.0120.00818.11
8.4.40.0170.00318.02
8.4.30.0030.01520.75
8.4.20.0170.00319.91
8.4.10.0030.00619.88
8.3.280.0100.00718.50
8.3.270.0090.01016.73
8.3.260.0090.01016.51
8.3.250.0100.00918.86
8.3.240.0110.00816.64
8.3.230.0130.00716.47
8.3.220.0070.01117.16
8.3.210.0080.01316.80
8.3.200.0060.00316.57
8.3.190.0090.01118.79
8.3.180.0050.00416.92
8.3.170.0130.00718.72
8.3.160.0080.00017.03
8.3.150.0080.01116.85
8.3.140.0080.00018.93
8.3.130.0090.00018.73
8.3.120.0040.00420.53
8.3.110.0160.00018.55
8.3.100.0380.00637.54
8.3.90.0440.00337.54
8.3.80.0410.01037.54
8.3.70.0270.00437.54
8.3.60.0470.00837.54
8.3.50.0330.00737.54
8.3.40.0380.00737.54
8.3.30.0400.00737.54
8.3.20.0220.00437.54
8.3.10.0130.00837.54
8.3.00.0120.00837.54
8.2.290.0040.00420.54
8.2.280.0120.00718.24
8.2.270.0100.01016.71
8.2.260.0060.00318.34
8.2.250.0000.00816.86
8.2.240.0040.00417.03
8.2.230.0060.00320.94
8.2.220.0130.00037.54
8.2.210.0180.00537.54
8.2.200.0090.00937.54
8.2.190.0130.00637.54
8.2.180.0190.00337.54
8.2.170.0270.00037.54
8.2.160.0270.00737.54
8.2.150.0330.00337.54
8.2.140.0340.00737.54
8.2.130.0320.00737.54
8.2.120.0390.00637.54
8.2.110.0350.01037.54
8.2.100.0370.00737.54
8.2.90.0310.01237.54
8.2.80.0380.00837.54
8.2.70.0400.00337.54
8.2.60.0260.01637.54
8.2.50.0300.01037.54
8.2.40.0200.02037.54
8.2.30.0330.00737.54
8.2.20.0300.01537.54
8.2.10.0320.00737.54
8.2.00.0300.00337.54
8.1.330.0130.00618.51
8.1.320.0110.00816.25
8.1.310.0000.00818.06
8.1.300.0080.00017.89
8.1.290.0230.01737.54
8.1.280.0210.02137.54
8.1.270.0340.01137.54
8.1.260.0300.00737.54
8.1.250.0200.00437.54
8.1.240.0110.01137.54
8.1.230.0090.00937.54
8.1.220.0180.00037.54
8.1.210.0180.00037.54
8.1.200.0110.00737.54
8.1.190.0090.00937.54
8.1.180.0330.00937.54
8.1.170.0270.01137.54
8.1.160.0310.00837.54
8.1.150.0310.00737.54
8.1.140.0310.00837.54
8.1.130.0400.00637.54
8.1.120.0410.00437.54
8.1.110.0250.01337.54
8.1.100.0270.00937.54
8.1.90.0200.01237.54
8.1.80.0260.00037.54
8.1.70.0410.00437.54
8.1.60.0370.00437.54
8.1.50.0280.00637.54
8.1.40.0370.00737.54
8.1.30.0370.01037.54
8.1.20.0180.00937.54
8.1.10.0100.01437.54
8.1.00.0130.00737.54

preferences:
38.42 ms | 403 KiB | 5 Q