3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a["100"] = true; echo "\$a is an associative map: "; var_export($a); echo "\n\n"; $keys = array_keys($a); echo "It has these keys: "; var_export($keys); echo "\n\n"; echo "But there was a silent string-int coercion when we added an object to the container using a string key that looked like an int\n\n" var_dump( is_string($keys[0]) );

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.240.0070.04912.38
5.4.230.0070.04612.37
5.4.220.0040.04912.37
5.4.210.0050.05112.37
5.4.200.0090.04712.37
5.4.190.0100.04912.37
5.4.180.0070.04912.37
5.4.170.0070.04712.38
5.4.160.0100.05612.37
5.4.150.0050.05812.36
5.4.140.0080.05712.06
5.4.130.0050.04812.04
5.4.120.0060.04312.00
5.4.110.0080.04512.00
5.4.100.0100.04712.00
5.4.90.0050.04712.00
5.4.80.0090.04512.00
5.4.70.0070.04511.99
5.4.60.0070.04211.99
5.4.50.0040.05211.99
5.4.40.0070.04911.98
5.4.30.0070.04511.97
5.4.20.0090.04211.97
5.4.10.0100.04811.98
5.4.00.0050.04711.47
5.3.280.0070.04712.71
5.3.270.0080.04612.73
5.3.260.0070.04712.72
5.3.250.0100.04312.72
5.3.240.0050.04712.72
5.3.230.0090.04412.71
5.3.220.0080.04012.68
5.3.210.0080.03612.68
5.3.200.0070.03812.68
5.3.190.0050.04212.68
5.3.180.0050.04312.67
5.3.170.0080.05012.67
5.3.160.0060.04612.67
5.3.150.0040.04712.68
5.3.140.0070.04512.66
5.3.130.0080.04112.66
5.3.120.0040.04412.65
5.3.110.0070.04712.65
5.3.100.0090.04912.12
5.3.90.0100.04512.08
5.3.80.0070.04612.07
5.3.70.0050.04612.07
5.3.60.0090.04512.06
5.3.50.0090.04512.00
5.3.40.0070.04412.00
5.3.30.0070.04311.94
5.3.20.0070.04311.71
5.3.10.0080.03811.68
5.3.00.0060.04611.66

preferences:
139.24 ms | 1394 KiB | 7 Q