3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public function __destruct() { echo 'destructed', PHP_EOL; } } $x = new C(); $fn = fn ($a, $b) => (($x = $a ** 2) + ($y = $b ** 2)) * ($x - $y); echo '- unsetting $x', PHP_EOL; unset($x); echo '- calling $fn', PHP_EOL; var_dump($fn(3, 2)); echo '- unsetting $fn', PHP_EOL; unset($fn); echo '- DONE.', PHP_EOL;

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.20.0080.00719.64
8.5.10.0100.00820.35
8.5.00.0140.00720.17
8.4.170.0110.01122.01
8.4.160.0080.01222.17
8.4.150.0030.00014.05
8.4.140.0110.01117.57
8.4.130.0130.00718.64
8.4.120.0060.00319.59
8.4.110.0110.01022.66
8.4.100.0140.00617.59
8.4.90.0120.00920.67
8.4.80.0090.01119.14
8.4.70.0090.00520.67
8.4.60.0050.00422.18
8.4.50.0100.00922.68
8.4.40.0060.01319.70
8.4.30.0000.01018.79
8.4.20.0040.00420.70
8.4.10.0000.00921.88
8.3.300.0120.01018.35
8.3.290.0100.00920.65
8.3.280.0110.01018.25
8.3.270.0130.00616.72
8.3.260.0140.00616.87
8.3.250.0140.00516.42
8.3.240.0070.00516.55
8.3.230.0150.00416.46
8.3.220.0100.00919.00
8.3.210.0120.00718.47
8.3.200.0060.00316.53
8.3.190.0040.00417.29
8.3.180.0090.00919.02
8.3.170.0070.00717.14
8.3.160.0070.01118.26
8.3.150.0160.00316.59
8.3.140.0080.00016.59
8.3.130.0000.00818.37
8.3.120.0080.00019.04
8.3.110.0080.00016.64
8.3.100.0100.01016.49
8.3.90.0030.00626.77
8.3.80.0060.00316.50
8.3.70.0060.01016.75
8.3.60.0180.00018.56
8.3.50.0140.00720.16
8.3.40.0150.00618.85
8.3.30.0110.00818.73
8.3.20.0080.00024.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.300.0100.00920.38
8.2.290.0110.00816.95
8.2.280.0100.00920.08
8.2.270.0060.01216.57
8.2.260.0110.00717.32
8.2.250.0040.00418.39
8.2.240.0030.00616.60
8.2.230.0060.00320.94
8.2.220.0040.00424.06
8.2.210.0040.01126.77
8.2.200.0060.00316.50
8.2.190.0130.00316.88
8.2.180.0070.01125.92
8.2.170.0170.00318.95
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00021.14
8.2.110.0040.00422.25
8.2.100.0050.00518.77
8.1.340.0150.00620.10
8.1.330.0140.00516.07
8.1.320.0090.01016.28
8.1.310.0070.01018.49
8.1.300.0040.01517.90
8.1.290.0060.00330.84
8.1.280.0150.00625.92
8.1.270.0000.00824.01
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00618.87
8.1.230.0030.00718.51
8.1.70.0050.00417.35

preferences:
38.64 ms | 403 KiB | 5 Q