3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-Type: text/plain'); function test($a, $b) { echo var_export($a, 1) . ' == ' . var_export($b, 1) . ' => ' . var_export($a == $b, 1) . "\n"; } test( null, '' ); // true test( null, array() ); // true test( '', array() ); // false test( 'true', true ); // true test( 'false', false ); // false test( 'false', true ); // true test( 9, '09' ); // true test( 9, 09 ); // false test( '0E4', 09 ); // true test( '0x00', '0E4' ); // true test( '0x0.1', 0 ); // true test( 'x', 0 ); // true test( '0xabcabcabcabcabc', '0XABCABCABCABCABd' ); // true test( array('1'), array('0x1') ); // true test( array(1) + array(2), array(1) ); // true test( function(){}, new stdclass() ); // true test( `foo`, `bar` ); // true

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.6.280.0070.07321.16
5.6.210.0070.07320.64
5.6.200.0030.04318.17
5.6.190.0030.05020.68
5.6.180.0130.07020.43
5.6.170.0370.04020.44
5.6.160.0100.07020.46
5.6.150.0130.07318.21
5.6.140.0130.07018.21
5.6.130.0130.07718.21
5.6.120.0030.09320.98
5.6.110.0130.08021.01
5.6.100.0100.07721.14
5.6.90.0070.06321.14
5.6.80.0100.07320.44
5.5.350.0100.07720.32
5.5.340.0130.07318.08
5.5.330.0070.04320.19
5.5.320.0100.06020.27
5.5.310.0200.04720.41
5.5.300.0030.08018.05
5.5.290.0100.07718.02
5.5.280.0070.08020.79
5.5.270.0100.07720.78
5.5.260.0100.08020.95
5.5.250.0130.05320.61
5.5.240.0330.07020.31
5.4.450.0470.05019.58
5.4.440.0500.04719.65
5.4.430.0600.03319.38
5.4.420.0170.05319.45
5.4.410.0200.06019.38
5.4.400.0230.04319.18
5.4.390.0070.05719.17
5.4.380.0170.06719.14
5.4.370.0100.05319.05
5.4.360.0230.04019.14
5.4.350.0090.05112.06
5.4.340.0100.03812.05
5.4.320.0050.03712.54
5.4.310.0100.03812.54
5.4.300.0090.03412.54
5.4.290.0080.04112.54
5.4.280.0070.03512.44
5.4.270.0100.03312.44
5.4.260.0070.03712.44
5.4.250.0110.04712.44
5.3.290.0070.04012.80
4.3.00.0100.01014.48

preferences:
142.65 ms | 1394 KiB | 7 Q