3v4l.org

run code in 500+ 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.5.90.0110.00616.75
8.5.80.0040.00416.52
8.5.70.0050.00516.84
8.5.60.0090.00916.86
8.5.50.0100.00718.07
8.5.30.0100.00721.07
8.5.20.0120.00620.14
8.5.10.0110.00617.97
8.5.00.0170.00719.93
8.4.240.0100.01119.61
8.4.230.0060.00319.47
8.4.220.0120.00821.36
8.4.210.0060.00319.41
8.4.180.0120.01019.63
8.4.170.0090.01323.89
8.4.160.0100.01123.94
8.4.150.0080.00416.84
8.4.140.0110.01017.59
8.4.130.0030.00518.76
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.330.0060.00418.20
8.3.320.0070.00318.20
8.3.310.0060.01318.29
8.3.300.0120.00722.74
8.3.290.0080.01220.79
8.3.280.0130.00718.30
8.3.270.0100.01016.49
8.3.260.0150.00416.21
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.320.0100.00917.99
8.2.310.0100.00818.06
8.2.300.0090.01021.95
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.340.0120.01017.59
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:
44.24 ms | 1043 KiB | 5 Q