3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ages = '12,14,23'; $dependents = array_map(function($age){ return array( 'id' => null, 'ageYears' => intval($age) ); },explode(',',$ages)_; var_dump($dependents);

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.20.0230.07720.05
7.0.10.0000.07320.13
7.0.00.0030.09020.15
5.6.170.0270.07320.55
5.6.160.0030.04720.48
5.6.150.0070.03718.23
5.6.140.0030.08718.21
5.6.130.0170.07718.14
5.6.120.0070.04721.14
5.6.110.0030.04321.04
5.6.100.0100.07020.97
5.6.90.0100.06721.12
5.6.80.0030.07020.51
5.5.310.0330.07020.23
5.5.300.0030.03717.93
5.5.290.0100.07317.97
5.5.280.0130.07320.68
5.5.270.0030.06020.77
5.5.260.0100.09020.87
5.5.250.0070.04720.71
5.5.240.0300.07720.28

preferences:
136.91 ms | 1394 KiB | 7 Q