3v4l.org

run code in 300+ PHP versions simultaneously
<?php $valor = array(8) { ["invoice"]=> int(34843) ["date"]=> string(10) "2001-01-23" ["bill-to"]=> &array(3) { ["given"]=> string(5) "Chris" ["family"]=> string(6) "Dumars" ["address"]=> array(4) { ["lines"]=> string(34) "458 Walkman Dr. Suite #292" ["city"]=> string(9) "Royal Oak" ["state"]=> string(2) "MI" ["postal"]=> int(48046) } } ["ship-to"]=> &array(3) { ["given"]=> string(5) "Chris" ["family"]=> string(6) "Dumars" ["address"]=> array(4) { ["lines"]=> string(34) "458 Walkman Dr. Suite #292" ["city"]=> string(9) "Royal Oak" ["state"]=> string(2) "MI" ["postal"]=> int(48046) } } ["product"]=> array(2) { [0]=> array(4) { ["sku"]=> string(6) "BL394D" ["quantity"]=> int(4) ["description"]=> string(10) "Basketball" ["price"]=> int(450) } [1]=> array(4) { ["sku"]=> string(7) "BL4438H" ["quantity"]=> int(1) ["description"]=> string(10) "Super Hoop" ["price"]=> int(2392) } } ["tax"]=> float(251.42) ["total"]=> float(4443.52) ["comments"]=> string(68) "Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338." } var_dump($valor); $valoryml = yaml_emit($valor); var_dump($valoryml);

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.0330.05020.21
7.0.10.0130.07720.09
7.0.00.0170.07720.25
5.6.170.0270.07720.51
5.6.160.0100.08320.55
5.6.150.0100.05318.15
5.6.140.0030.05318.29
5.6.130.0070.05318.18
5.6.120.0200.06720.99
5.6.110.0170.04720.98
5.6.100.0170.07721.06
5.6.90.0100.07320.93
5.6.80.0170.07320.37
5.5.310.0270.06720.32
5.5.300.0070.04017.98
5.5.290.0100.07717.96
5.5.280.0100.04320.68
5.5.270.0070.08020.61
5.5.260.0100.07320.79
5.5.250.0130.06320.48
5.5.240.0100.07020.21

preferences:
143.74 ms | 1394 KiB | 7 Q