3v4l.org

run code in 300+ PHP versions simultaneously
<?php $couponHolder = array(); //$test = 'test'; $test = null; //$couponHolder['test'] = $test ? $test . '!' : null; $couponHolder['test'] = $test . ?: null; print_r($couponHolder);

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)
5.4.50.0160.04411.99
5.4.40.0170.04311.98
5.4.30.0160.04011.97
5.4.20.0140.04311.97
5.4.10.0180.04111.97
5.4.00.0190.04911.47
5.3.150.0150.04712.67
5.3.140.0210.04012.66
5.3.130.0200.04112.65
5.3.120.0140.04612.66
5.3.110.0160.04612.66
5.3.100.0190.05212.12
5.3.90.0150.04312.08
5.3.80.0220.04912.07
5.3.70.0160.04312.07
5.3.60.0150.04512.06
5.3.50.0150.04712.00
5.3.40.0150.04312.00
5.3.30.0270.05211.95
5.3.20.0160.04311.73
5.3.10.0140.04211.69
5.3.00.0150.05211.68

preferences:
136.16 ms | 1394 KiB | 7 Q