3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else if ( !1 // Make sure that this is still false! ) { } else { if ( !1 // One last check! ) { __halt_compiler() // BAIL OUT, MAJOR /MAJOR/ ISSUES! ; } $emphasis = "!" // We may change this later ; echo "good" . " " . "programming" . $emphasis ; // Semi-colon on next line always! }

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.140.0230.06312.11
5.4.130.0140.04512.11
5.4.120.0150.04112.06
5.4.110.0150.04112.05
5.4.100.0150.04112.05
5.4.90.0160.04112.05
5.4.80.0140.04312.05
5.4.70.0160.03912.05
5.4.60.0130.04312.04
5.4.50.0200.05012.05
5.4.40.0150.04212.03
5.4.30.0140.04312.03
5.4.20.0150.04012.03
5.4.10.0110.04512.03
5.4.00.0160.05311.52
5.3.240.0200.05612.74
5.3.230.0200.04312.75
5.3.220.0210.07112.71
5.3.210.0140.04512.71
5.3.200.0180.04112.70
5.3.190.0250.06512.71
5.3.180.0160.04312.70
5.3.170.0190.05412.70
5.3.160.0160.04312.70
5.3.150.0200.05412.70
5.3.140.0150.04312.69
5.3.130.0120.04712.69
5.3.120.0160.04212.69
5.3.110.0190.04012.69
5.3.100.0190.03912.17
5.3.90.0130.04512.15
5.3.80.0230.06512.15
5.3.70.0160.04212.15
5.3.60.0140.04312.13
5.3.50.0150.04312.07
5.3.40.0150.04512.07
5.3.30.0150.04312.04
5.3.20.0090.04711.82
5.3.10.0150.03811.78
5.3.00.0230.06311.77

preferences:
145.87 ms | 1394 KiB | 7 Q