3v4l.org

run code in 300+ PHP versions simultaneously
<?php $extraString = 'a:16:{s:5:\"items\";s:65:\"1|Oinment\n2|Powder\n3|Lotion\nTablets|Tablets\nCapsule|Capsule\n\";s:8:\"multiple\";b:0;s:6:\"aslist\";b:1;s:12:\"empty_option\";s:0:\"\";s:7:\"optrand\";i:0;s:12:\"other_option\";N;s:10:\"other_text\";s:8:\"Other...\";s:13:\"title_display\";s:6:\"before\";s:11:\"description\";s:0:\"\";s:11:\"custom_keys\";i:1;s:14:\"options_source\";s:0:\"\";s:7:\"private\";i:0;s:8:\"analysis\";b:1;s:5:\"value\";s:1:\"1\";s:11:\"css_classes\";s:0:\"\";s:15:\"wrapper_classes\";s:0:\"\";}'; $keysValuesArray = preg_split("/[;]/", $extraString, -1, PREG_SPLIT_NO_EMPTY); //print_r($keysValuesArray); $itemsKey = preg_grep("/"items"/" ,$keysValuesArray); //print_r($keysValuesArray[0]); print_r($itemsKey); ?>

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.0100.08020.29
5.6.160.0070.04320.47
5.6.150.0130.08018.17
5.6.140.0070.08018.25
5.6.130.0070.03718.18
5.6.120.0100.05720.95
5.6.110.0100.07721.04
5.6.100.0130.05321.13
5.6.90.0200.07020.98
5.6.80.0100.06320.44
5.5.300.0030.04018.07
5.5.290.0100.08018.01
5.5.280.0230.03720.76
5.5.270.0130.03720.86
5.5.260.0100.08020.77
5.5.250.0100.03720.68
5.5.240.0230.06720.15

preferences:
137.84 ms | 1394 KiB | 7 Q