3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ACommandThatCanWerkStatically { public function __construct( public string $template ) {} public function execute(Dictionary $nameToReplacementMap): string {} public static function execute(string $template, Dictionary $nameToReplacementMap): string {} } $template = new ACommandThatCanWerkStatically('@@@VERSION@@@'); echo ACommandThatCanWerkStatically::execute( $template->template, $nameToReplacementMap = array('VERSION' => '0.0.1-alpha0') ), "\n"; echo $template->execute($nameToReplacementMap), "\n";

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.0240.01025.92
8.3.50.0100.00625.92
8.3.40.0240.00625.92
8.3.30.0190.00625.92
8.3.20.0180.01125.92
8.3.10.0240.01025.92
8.3.00.0220.00825.92
8.2.180.0270.00325.92
8.2.170.0240.01025.92
8.2.160.0400.00025.92
8.2.150.0440.00325.92
8.2.140.0330.01525.92
8.2.130.0290.01325.92
8.2.120.0410.00325.92
8.2.110.0280.00325.92
8.2.100.0240.00725.92
8.2.90.0190.01125.92
8.2.80.0320.00425.92
8.2.70.0260.00625.92
8.2.60.0220.01025.92
8.2.50.0240.00725.92
8.2.40.0230.00825.92
8.2.30.0320.00025.92
8.2.20.0220.00725.92
8.2.10.0220.00725.92
8.2.00.0270.00625.92
8.1.280.0140.00325.92
8.1.270.0280.01025.92
8.1.260.0240.01225.92
8.1.250.0290.00425.92
8.1.240.0240.00625.92
8.1.230.0230.01025.92
8.1.220.0210.01525.92
8.1.210.0220.01125.92
8.1.200.0270.00325.92
8.1.190.0300.00025.92
8.1.180.0250.00725.92
8.1.170.0330.00725.92
8.1.160.0330.00725.92
8.1.150.0370.00425.92
8.1.140.0300.01025.92
8.1.130.0350.00625.92
8.1.120.0290.01125.92
8.1.110.0270.01225.92
8.1.100.0310.01025.92
8.1.90.0250.01625.92
8.1.80.0300.00925.92
8.1.70.0300.00625.92
8.1.60.0300.01025.92
8.1.50.0400.00325.92
8.1.40.0330.00425.92
8.1.30.0270.00725.92
8.1.20.0400.00625.92
8.1.10.0320.01125.92
8.1.00.0410.00325.92

preferences:
134.63 ms | 993 KiB | 7 Q