3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public function __construct() { return new stdClass(); } public function __destruct() { echo 'Destructor for ', __CLASS__, PHP_EOL; } } $o = new TestClass(20); var_dump($o);

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.120.0100.00124.12
8.4.110.0050.00419.04
8.4.100.0040.00518.90
8.4.90.0090.01123.76
8.4.80.0060.00220.41
8.4.70.0040.00317.98
8.4.60.0110.00918.96
8.4.50.0160.00418.59
8.4.40.0100.01017.62
8.4.30.0100.01018.71
8.4.20.0100.01021.48
8.4.10.0120.00819.11
8.3.250.0130.00518.81
8.3.240.0110.00817.06
8.3.230.0150.00816.63
8.3.220.0120.00618.91
8.3.210.0130.00616.43
8.3.200.0060.00316.38
8.3.190.0100.00817.05
8.3.180.0080.01016.80
8.3.170.0120.00618.76
8.3.160.0070.00718.47
8.3.150.0110.00717.09
8.3.140.0070.01116.85
8.3.130.0070.00316.59
8.3.120.0040.00420.88
8.3.110.0030.00520.94
8.3.100.0080.01124.06
8.3.90.0040.00426.77
8.3.80.0050.00517.97
8.3.70.0450.00617.97
8.3.60.0470.00017.97
8.3.50.0060.00917.97
8.3.40.0280.01117.97
8.3.30.0180.01417.97
8.3.20.0160.00617.97
8.3.10.0160.00417.97
8.3.00.0240.00317.97
8.2.290.0020.00620.38
8.2.280.0110.00818.20
8.2.270.0110.00717.09
8.2.260.0040.00416.68
8.2.250.0000.00816.49
8.2.240.0090.00616.95
8.2.230.0090.00022.58
8.2.220.0100.00337.54
8.2.210.0000.00826.77
8.2.200.0090.00018.54
8.2.190.0200.00417.97
8.2.180.0150.01117.97
8.2.170.0210.00417.97
8.2.160.0260.00017.97
8.2.150.0200.00717.97
8.2.140.0280.00017.97
8.2.130.0200.00417.97
8.2.120.0210.00817.97
8.2.110.0180.00517.97
8.2.100.0220.00017.97
8.2.90.0180.00417.97
8.2.80.0230.00617.97
8.2.70.0340.00417.97
8.2.60.0220.01817.97
8.2.50.0310.00817.97
8.2.40.0390.00317.97
8.2.30.0390.00317.97
8.2.20.0580.00717.97
8.2.10.0410.00617.97
8.2.00.0320.01117.97
8.1.330.0130.00622.13
8.1.320.0110.00918.07
8.1.310.0140.00416.28
8.1.300.0000.00916.12
8.1.290.0040.00830.84
8.1.280.0420.00317.97
8.1.270.0400.00417.97
8.1.260.0170.01017.97
8.1.250.0170.00917.97
8.1.240.0260.00017.97
8.1.230.0170.00317.97
8.1.220.0170.00417.97
8.1.210.0230.00817.97
8.1.200.0290.00917.97
8.1.190.0370.00317.97
8.1.180.0290.01117.97
8.1.170.0350.00817.97
8.1.160.0320.01217.97
8.1.150.0280.01117.97
8.1.140.0260.01417.97
8.1.130.0230.00517.97
8.1.120.0210.00317.97
8.1.110.0190.00317.97
8.1.100.0210.00017.97
8.1.90.0160.00417.97
8.1.80.0180.00517.97
8.1.70.0210.00417.97
8.1.60.0200.00317.97
8.1.50.0210.00017.97
8.1.40.0150.00717.97
8.1.30.0170.01317.97
8.1.20.0260.00017.97
8.1.10.0190.00817.97
8.1.00.0230.00317.97

preferences:
26.24 ms | 403 KiB | 5 Q