3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '/** * @var int * @Column(type="integer",name="id") * @Id * @GeneratedValue(strategy="AUTO") * @Webit({ "0": 1, "1": -2, "2": 3.333, "3": 4.0e+17, "4": "abc", "5": "\u00e1\n", "6": null, "7": [ 2.1, 2.2, [ "2.2.1" ] ], "8": false, "9": true, "10": "", "key": "value", "abc\"def": [] }) */'; preg_match("/@WebIT\((.*?)\)/i", $string, $output_array); var_dump($output_array);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> string(190) "@Webit({ "0": 1, "1": -2, "2": 3.333, "3": 4.0e+17, "4": "abc", "5": "\u00e1\n", "6": null, "7": [ 2.1, 2.2, [ "2.2.1" ] ], "8": false, "9": true, "10": "", "key": "value", "abc\"def": [] })" [1]=> string(182) "{ "0": 1, "1": -2, "2": 3.333, "3": 4.0e+17, "4": "abc", "5": "\u00e1\n", "6": null, "7": [ 2.1, 2.2, [ "2.2.1" ] ], "8": false, "9": true, "10": "", "key": "value", "abc\"def": [] }" }

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:
49.7 ms | 402 KiB | 8 Q