3v4l.org

run code in 300+ PHP versions simultaneously
<?php $diagnoses = ['Здоров', 'ОРЗ', 'ОРВИ']; $diagnosisNumber = array_rand($diagnoses); $diagnosis = $diagnoses[$diagnosisNumber]; if ($diagnosisNumber) { if (rand(1,100) === 42) {//Jackpot $diagnosis .= ' + Больничный на 2 дня!'; } } echo $diagnosis; echo ''';

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.1.20.0420.05739.46
7.1.10.0230.06021.31
7.1.00.0170.06721.38
7.0.160.0250.05720.91
7.0.150.0250.05720.89
7.0.140.0230.05820.97
7.0.130.0270.05320.86
7.0.120.0320.05520.96
7.0.110.0220.06020.90
7.0.100.0220.06320.83
7.0.90.0270.05221.02
7.0.80.0280.05220.90
7.0.70.0170.06220.92
7.0.60.0200.06020.73
7.0.50.0220.05820.90
7.0.40.0270.05820.92
7.0.30.0230.05320.89
7.0.20.0200.06720.88
7.0.10.0280.05220.90
7.0.00.0370.05720.90

preferences:
140.9 ms | 1394 KiB | 7 Q