3v4l.org

run code in 300+ PHP versions simultaneously
<?php eval(' class RefCallBugTester { public $bad = true; function __call( $name, $args ) { $old = error_reporting( E_ALL & ~E_WARNING ); call_user_func_array( array( $this, \'checkForBrokenRef\' ), $args ); error_reporting( $old ); } function checkForBrokenRef( &$var ) { if( $var ) $this->bad = false; } function execute() { $var = true; call_user_func_array( array( $this, \'foo\' ), array( &$var ) ); } } $refCallBugTester = new RefCallBugTester(); $refCallBugTester->execute(); if($refCallBugTester->bad) return $error_message; return null; ')

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.0170.04312.01
5.4.130.0240.06512.00
5.4.120.0130.04511.96
5.4.110.0250.06111.95
5.4.100.0160.04211.96
5.4.90.0160.04211.95
5.4.80.0120.04511.95
5.4.70.0240.06411.95
5.4.60.0140.04311.95
5.4.50.0140.04311.95
5.4.40.0110.04511.93
5.4.30.0210.08211.93
5.4.20.0130.04311.92
5.4.10.0160.04211.93
5.4.00.0150.04311.43
5.3.240.0150.04512.72
5.3.230.0210.07112.71
5.3.220.0180.04112.68
5.3.210.0150.04612.68
5.3.200.0250.06412.68
5.3.190.0190.04512.68
5.3.180.0210.05412.67
5.3.170.0160.04512.67
5.3.160.0180.04212.68
5.3.150.0120.04612.67
5.3.140.0250.06412.66
5.3.130.0130.04612.66
5.3.120.0220.06712.66
5.3.110.0310.07512.66
5.3.100.0140.04512.12
5.3.90.0140.04512.09
5.3.80.0170.04212.07
5.3.70.0130.04512.07
5.3.60.0210.06812.06
5.3.50.0130.04512.00
5.3.40.0150.04412.00
5.3.30.0150.04111.95
5.3.20.0140.05811.72
5.3.10.0120.04311.69
5.3.00.0130.04311.66

preferences:
141.64 ms | 1394 KiB | 7 Q