3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; switch ($a) { case 1: echo " besnik "; break: case 2: echo " besnik " ; break: case 3: echo " zef"; break: case 4: echo " besnik "; break: }

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.04020.22
7.0.10.0070.09020.30
7.0.00.0030.08720.29
5.6.170.0300.07320.47
5.6.160.0000.05720.52
5.6.150.0030.04018.29
5.6.140.0030.08018.14
5.6.130.0070.03718.12
5.6.120.0000.04321.12
5.6.110.0000.06021.11
5.6.100.0070.03721.14
5.6.90.0230.07021.00
5.6.80.0100.06020.28
5.5.310.0270.07720.30
5.5.300.0070.04318.06
5.5.290.0130.04718.02
5.5.280.0070.07020.80
5.5.270.0070.09020.76
5.5.260.0130.06320.87
5.5.250.0000.04720.69
5.5.240.0030.06020.15

preferences:
141.01 ms | 1386 KiB | 7 Q