3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Turn your junk into an array $includes = array( "inc/related-portfolio-aaa.php", "inc/related-portfolio-bbb.php", "inc/related-portfolio-ccc.php", "inc/related-portfolio-bbb.php" ); // Loop that shit foreach($includes as $inc){ $include = true; // Check if the current filename is in the format you mentioned //if(strpos(__FILE__, "-project.php") !== false){ // Get the prefix of the current filename $prefix = explode("-", __FILE__)[0]; // Get the suffix of the include $suffix = explode(".", explode("-", $inc)[2])[0]; // Check if it matches //if($prefix === $suffix) $include = false; echo $prefix." - ".$suffix."\n"; } //if($include) include $inc; }

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)
7.0.00.0130.07320.09
5.6.160.0170.07020.52
5.6.150.0100.05718.28
5.6.140.0030.05318.19
5.6.130.0070.05018.23
5.6.120.0100.08321.09
5.6.110.0100.08321.01
5.6.100.0070.05321.04
5.6.90.0100.07320.95
5.6.80.0030.06720.41
5.5.300.0100.07717.98
5.5.290.0070.06018.09
5.5.280.0130.07720.77
5.5.270.0000.07320.67
5.5.260.0070.08320.64
5.5.250.0130.05020.77
5.5.240.0200.07720.16

preferences:
135.31 ms | 1394 KiB | 7 Q