3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = [ 'name' => 'Rule 1', 'description' => 'description', 'enabled' => true, 'conditions' => [ [ 'typeName' => 'customer-merchant-reference', 'values' => [ [ 'operator' => null, 'value' => 'customer-reference-123', ], ], ], ], 'balancers' => [ [ 'methodProviderTypeId' => 42, 'percentage' => 100, 'apiUserId' => '6f2be132-69bb-4c9c-8a2f-4586fcc79cd3', ], ], ]; echo json_encode($test);
Output for git.master_jit, git.master
{"name":"Rule 1","description":"description","enabled":true,"conditions":[{"typeName":"customer-merchant-reference","values":[{"operator":null,"value":"customer-reference-123"}]}],"balancers":[{"methodProviderTypeId":42,"percentage":100,"apiUserId":"6f2be132-69bb-4c9c-8a2f-4586fcc79cd3"}]}

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:
27.9 ms | 406 KiB | 5 Q