3v4l.org

run code in 300+ PHP versions simultaneously
<?php $shops = [ 'sc.icfgjofgjgfnic2.fgjwegjb01-fglive' => ['au'], 'sc.jufgjdmia4gfdj.wefgb01' => ['ci','cm','eg','gh','ke','ma','ng'], 'sc.fhfghdj.j' => ['bd', 'ir', 'lk', 'mm', 'np', 'pk'], ]; print_r(array_map('array_sum', array_values($shops)));
Output for git.master, git.master_jit
Array ( [0] => 0 [1] => 0 [2] => 0 )
Output for rfc.property-hooks
Warning: array_sum(): Addition is not supported on type string in /in/N4mvK on line 9 Warning: array_sum(): Addition is not supported on type string in /in/N4mvK on line 9 Warning: array_sum(): Addition is not supported on type string in /in/N4mvK on line 9 Warning: array_sum(): Addition is not supported on type string in /in/N4mvK on line 9 Warning: array_sum(): Addition is not supported on type string in /in/N4mvK on line 9 Warning: array_sum(): Addition is not supported on type string in /in/N4mvK on line 9 Warning: array_sum(): Addition is not supported on type string in /in/N4mvK on line 9 Warning: array_sum(): Addition is not supported on type string in /in/N4mvK on line 9 Warning: array_sum(): Addition is not supported on type string in /in/N4mvK on line 9 Warning: array_sum(): Addition is not supported on type string in /in/N4mvK on line 9 Warning: array_sum(): Addition is not supported on type string in /in/N4mvK on line 9 Warning: array_sum(): Addition is not supported on type string in /in/N4mvK on line 9 Warning: array_sum(): Addition is not supported on type string in /in/N4mvK on line 9 Warning: array_sum(): Addition is not supported on type string in /in/N4mvK on line 9 Array ( [0] => 0 [1] => 0 [2] => 0 )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
56.4 ms | 403 KiB | 8 Q