3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new class { public function foo(){ return 'foo';}}; var_dump($a?->foo()); var_dump(($b = null)?->foo()); var_dump($c?->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.3.60.0080.00816.75
8.3.50.0170.00318.65
8.3.40.0120.00320.34
8.3.30.0070.00718.70
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0050.00326.16
8.2.180.0160.00025.92
8.2.170.0100.00722.96
8.2.160.0090.00922.96
8.2.150.0070.00025.66
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0030.00520.93
8.2.110.0090.00322.07
8.2.100.0110.00020.57
8.1.280.0100.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00718.67
8.1.230.0100.00018.43
8.1.90.0010.00717.35

preferences:
39.2 ms | 400 KiB | 5 Q