3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Numeric strings will be converted into an integer\n"; var_dump(array( -1 => -1, 1 => 1, '1' => '1', '-1' => '-1', '1.1' => '1.1', 's1' => 's1', )); echo "Floating point numbers will be converted into an integer:\n": var_dump(array( -1 => -1, 0 => 0, 1 => 1, -1.9 => -1.9, 0.9 => 0.9, 1.9 => 1.9 )); echo "Booleans will be converted into an integer:\n"; var_dump(array( 0 => 0, 1 => 1, true => true, false => false, )); echo "NULL will be converted into an empty string:\n"; var_dump(array( '' => '', null => 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.210.0070.03512.38
5.4.200.0110.04212.37
5.4.190.0120.03912.37
5.4.180.0120.04112.37
5.4.170.0150.03612.38
5.4.160.0160.05212.37
5.4.150.0110.04112.37
5.4.140.0190.05012.06
5.4.130.0110.04212.04
5.4.120.0100.04612.01
5.4.110.0130.03912.00
5.4.100.0100.04212.01
5.4.90.0090.04112.00
5.4.80.0100.04112.00
5.4.70.0150.04012.00
5.4.60.0130.04612.00
5.4.50.0110.05212.00
5.4.40.0110.04711.99
5.4.30.0140.07411.98
5.4.20.0100.05011.98
5.4.10.0120.04611.98
5.4.00.0140.04911.48
5.3.270.0160.04912.72
5.3.260.0150.04912.72
5.3.250.0110.05412.72
5.3.240.0190.05912.72
5.3.230.0150.04612.71
5.3.220.0140.04712.68
5.3.210.0130.05012.68
5.3.200.0130.04712.68
5.3.190.0150.04612.68
5.3.180.0140.04612.68
5.3.170.0210.07412.67
5.3.160.0140.05812.67
5.3.150.0120.04912.67
5.3.140.0130.04712.66
5.3.130.0140.04512.66
5.3.120.0140.04912.66
5.3.110.0150.04912.66
5.3.100.0140.04512.12
5.3.90.0150.04612.08
5.3.80.0120.04912.07
5.3.70.0140.04712.07
5.3.60.0120.05312.06
5.3.50.0140.05612.00
5.3.40.0190.06212.00
5.3.30.0220.07211.94
5.3.20.0180.04611.72
5.3.10.0130.04711.69
5.3.00.0130.05811.67

preferences:
136.55 ms | 1394 KiB | 7 Q