3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/{(?:[^{}]+|(?R))*}/'; $str = "{\"message\":\"cURL error 7: Failed to connect to 172.17.0.1 port 3000: Connection refused\",\"trace\":\"#0 /foo/bar/vendor/guzzlehttp/guzzle/src/Adapter/Curl/CurlAdapter.php(112): GuzzleHttp\Event\RequestEvents::emitError(Object(GuzzleHttp\Adapter\Transaction), Object(GuzzleHttp\Exception\AdapterException), Array)\n#1 /foo/bar/vendor/guzzlehttp/guzzle/src/Adapter/Curl/CurlAdapter.php(91): GuzzleHttp\Adapter\Curl\CurlAdapter->handleError(Object(GuzzleHttp\Adapter\Transaction), Array, Resource id #16)\n#2 /foo/bar/vendor/guzzlehttp/guzzle/src/Client.php(193): GuzzleHttp\Adapter\Curl\CurlAdapter->send(Object(GuzzleHttp\Adapter\Transaction))\n#3 /foo/bar/vendor/guzzlehttp/guzzle/src/Client.php(181): GuzzleHttp\Client->send(Object(GuzzleHttp\Message\Request))\n#4 /foo/bar/components/react/react.php(176): GuzzleHttp\Client->post('/project/666...', Array)\n#5 /foo/bar/components/react/react.php(136): react->rendererQuery('project', '{}', Array)\n#6 /foo/bar/controllers/ProjectController.php(50): react->render('project')\n#7 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(4126): ProjectController->actionIndex()\n#8 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(3639): CInlineAction->runWithParams(Array)\n#9 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6815): CController->runAction(Object(CInlineAction))\n#10 /foo/bar/components/Controller.php(578): CFilterChain->run()\n#11 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6857): Controller->filterEnsureSSL(Object(CFilterChain))\n#12 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6812): CInlineFilter->filter(Object(CFilterChain))\n#13 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6824): CFilterChain->run()\n#14 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(4017): CFilter->filter(Object(CFilterChain))\n#15 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6857): CController->filterAccessControl(Object(CFilterChain))\n#16 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6812): CInlineFilter->filter(Object(CFilterChain))\n#17 /foo/bar/components/Controller.php(258): CFilterChain->run()\n#18 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6857): Controller->filterEnsureCanonicalHost(Object(CFilterChain))\n#19 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(6812): CInlineFilter->filter(Object(CFilterChain))\n#20 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(3629): CFilterChain->run()\n#21 /foo/bar/components/Controller.php(357): CController->runActionWithFilters(Object(CInlineAction), Array)\n#22 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(3614): Controller->runActionWithFilters(Object(CInlineAction), Array)\n#23 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(1761): CController->run('index')\n#24 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(1681): CWebApplication->runController('project/index')\n#25 /foo/bar/lib/pph-yii-repo/framework/yiilite.php(1202): CWebApplication->processRequest()\n#26 /foo/bar/www/index.php(18): CApplication->run()\n#27 {main}\",\"json_encoded\":true}"; preg_match($re, $str, $matches); var_dump(array_keys(get_defined_constants(true)["pcre"], preg_last_error())); // Print the entire match result print_r($matches);

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)
8.3.60.0110.00418.31
8.3.50.0070.01622.00
8.3.40.0090.00619.01
8.3.30.0090.00618.84
8.3.20.0040.00421.90
8.3.10.0040.00420.14
8.3.00.0080.00020.95
8.2.180.0140.00718.41
8.2.170.0190.00022.96
8.2.160.0080.00819.21
8.2.150.0040.01524.18
8.2.140.0030.00624.66
8.2.130.0050.00320.36
8.2.120.0080.00026.35
8.2.110.0090.00020.50
8.2.100.0090.00318.16
8.2.90.0050.00318.00
8.2.80.0040.00419.07
8.2.70.0040.00417.75
8.2.60.0030.00518.00
8.2.50.0030.00518.00
8.2.40.0040.00418.05
8.2.30.0050.00220.46
8.2.20.0070.00018.15
8.2.10.0040.00418.00
8.2.00.0000.00818.30
8.1.280.0070.01125.92
8.1.270.0040.00423.79
8.1.260.0030.00526.35
8.1.250.0090.00028.09
8.1.240.0090.00023.77
8.1.230.0040.00822.23
8.1.220.0050.00318.68
8.1.210.0040.00418.77
8.1.200.0000.00817.60
8.1.190.0070.00417.35
8.1.180.0000.00818.10
8.1.170.0000.00917.62
8.1.160.0040.00418.90
8.1.150.0000.00720.40
8.1.140.0040.00419.61
8.1.130.0000.00719.15
8.1.120.0000.00717.64
8.1.110.0030.00517.49
8.1.100.0040.00417.50
8.1.90.0040.00417.59
8.1.80.0030.00717.49
8.1.70.0030.00317.53
8.1.60.0040.00417.80
8.1.50.0030.00617.69
8.1.40.0030.00617.68
8.1.30.0030.00617.76
8.1.20.0040.00417.73
8.1.10.0050.00317.75
8.1.00.0080.00417.72
8.0.300.0040.00418.77
8.0.290.0030.00516.88
8.0.280.0030.00318.44
8.0.270.0000.00717.20
8.0.260.0040.00417.28
8.0.250.0000.00717.18
8.0.240.0080.00017.11
8.0.230.0070.00017.00
8.0.220.0000.00716.97
8.0.210.0030.00317.00
8.0.200.0000.00816.98
8.0.190.0000.00717.00
8.0.180.0040.00417.12
8.0.170.0030.00517.06
8.0.160.0030.00317.06
8.0.150.0000.00716.86
8.0.140.0000.00816.86
8.0.130.0000.00513.42
8.0.120.0070.00016.88
8.0.110.0030.00517.01
8.0.100.0040.00417.08
8.0.90.0040.00417.01
8.0.80.0030.01217.04
8.0.70.0050.00317.04
8.0.60.0000.00817.02
8.0.50.0070.00016.83
8.0.30.0100.01117.23
8.0.20.0090.01117.41
8.0.10.0000.00717.04
8.0.00.0140.00716.83
7.4.330.0060.00015.55
7.4.320.0000.00616.81
7.4.300.0070.00016.61
7.4.290.0030.00516.79
7.4.280.0080.00016.70
7.4.270.0030.00316.79
7.4.260.0030.00316.82
7.4.250.0050.00316.66
7.4.240.0000.00716.59
7.4.230.0030.00316.85
7.4.220.0090.00916.86
7.4.210.0080.00816.84
7.4.200.0040.00416.81
7.4.160.0120.00616.66
7.4.150.0070.01417.40
7.4.140.0100.00917.86
7.4.130.0050.01416.70
7.4.120.0080.01216.64
7.4.110.0070.01416.80
7.4.100.0040.01916.49
7.4.90.0110.00816.55
7.4.80.0090.00919.39
7.4.70.0040.01516.57
7.4.60.0100.00716.67
7.4.50.0060.00916.66
7.4.40.0070.01016.66
7.4.30.0120.00916.59
7.4.00.0090.00315.30
7.3.330.0000.00513.14
7.3.320.0030.00313.23
7.3.310.0000.00716.47
7.3.300.0040.00416.36
7.3.290.0000.00716.39
7.3.280.0090.01016.40
7.3.270.0110.00617.40
7.3.260.0090.01316.54
7.3.250.0130.00516.53
7.3.240.0090.00916.79
7.3.230.0070.01516.78
7.3.210.0070.01016.37
7.3.200.0070.01116.62
7.3.190.0050.01316.47
7.3.180.0100.01116.82
7.3.170.0100.01316.60
7.3.160.0070.01016.38
7.3.120.0110.00615.01
7.3.110.0090.00615.31
7.3.100.0060.00615.21
7.3.90.0080.00815.06
7.3.80.0080.00414.88
7.3.70.0030.01414.82
7.3.60.0040.00714.99
7.3.50.0070.00315.09
7.3.40.0000.01314.82
7.3.30.0040.01214.95
7.3.20.0100.00716.67
7.3.10.0030.01316.91
7.3.00.0120.00316.72
7.2.330.0060.01116.68
7.2.320.0070.01016.78
7.2.310.0130.00316.87
7.2.300.0100.00716.71
7.2.290.0030.01416.77
7.2.240.0080.01115.14
7.2.230.0000.01714.95
7.2.220.0060.00614.88
7.2.210.0100.00615.04
7.2.200.0060.00915.37
7.2.190.0100.00615.13
7.2.180.0000.01514.79
7.2.170.0000.01315.07
7.2.160.0030.01015.07
7.2.150.0060.01017.08
7.2.140.0070.00716.83
7.2.130.0000.00917.04
7.2.120.0120.00316.96
7.2.110.0090.01216.92
7.2.100.0040.01916.89
7.2.90.0090.00617.00
7.2.80.0080.01616.99
7.2.70.0100.00317.06
7.2.60.0100.00716.86
7.2.50.0100.00316.87
7.2.40.0030.01016.89
7.2.30.0070.01016.93
7.2.20.0100.00417.03
7.2.10.0040.01116.90
7.2.00.0030.00916.63
7.1.330.0070.00716.02
7.1.320.0100.00015.99
7.1.310.0000.01015.79
7.1.300.0100.00615.84
7.1.290.0090.00616.14
7.1.280.0070.00716.10
7.1.270.0030.00915.82
7.1.260.0030.01015.99
7.1.250.0100.00015.89
7.1.200.0030.00716.03
7.1.70.0000.00817.20
7.1.60.0050.00517.58
7.1.50.0040.00717.18
7.1.40.0120.00016.96
7.1.30.0040.00716.93
7.1.20.0070.00417.01
7.1.10.0060.00316.89
7.1.00.0030.00616.91
7.0.200.0000.01116.52
7.0.190.0000.00816.52
7.0.180.0040.00416.45
7.0.170.0000.00716.47
7.0.160.0000.00916.15
7.0.150.0060.00316.46
7.0.140.0040.00416.66
7.0.130.0000.00816.71
7.0.120.0000.00816.59
7.0.110.0030.00616.68
7.0.100.0080.00316.47
7.0.90.0000.00916.57
7.0.80.0070.00216.52
7.0.70.0000.00816.48
7.0.60.0050.00316.35
7.0.50.0000.01316.46
7.0.40.0070.00015.11
7.0.30.0000.00915.11
7.0.20.0040.00415.11
7.0.10.0040.00415.11
7.0.00.0040.00415.11

preferences:
61.47 ms | 401 KiB | 5 Q