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.4.120.0070.01224.40
8.4.110.0160.00418.84
8.4.100.0120.00817.87
8.4.90.0090.01220.56
8.4.80.0080.00918.90
8.4.70.0100.01218.31
8.4.60.0040.00418.82
8.4.50.0090.01119.01
8.4.40.0130.00719.70
8.4.30.0120.00919.79
8.4.20.0070.01318.85
8.4.10.0030.00619.64
8.3.250.0110.00919.02
8.3.240.0090.01117.42
8.3.230.0100.01016.66
8.3.220.0100.00518.86
8.3.210.0100.00616.97
8.3.200.0120.00816.73
8.3.190.0130.00817.40
8.3.180.0080.01117.08
8.3.170.0150.00620.96
8.3.160.0070.01116.96
8.3.150.0110.00817.36
8.3.140.0000.00817.29
8.3.130.0030.00618.62
8.3.120.0030.00619.22
8.3.110.0040.00420.94
8.3.100.0100.00716.68
8.3.90.0030.00526.77
8.3.80.0090.00017.97
8.3.70.0160.00618.55
8.3.60.0070.00718.56
8.3.50.0140.00522.07
8.3.40.0040.01118.79
8.3.30.0120.00319.10
8.3.20.0030.00522.07
8.3.10.0080.00020.52
8.3.00.0040.00420.89
8.2.290.0110.00822.60
8.2.280.0070.00118.86
8.2.270.0120.00616.85
8.2.260.0000.00819.36
8.2.250.0030.00516.91
8.2.240.0120.00016.96
8.2.230.0070.00322.58
8.2.220.0110.00024.06
8.2.210.0080.01126.77
8.2.200.0060.00318.54
8.2.190.0070.01416.98
8.2.180.0120.00318.41
8.2.170.0040.01122.96
8.2.160.0100.00320.55
8.2.150.0110.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00020.47
8.2.120.0070.00026.35
8.2.110.0070.00322.28
8.2.100.0110.00018.16
8.2.90.0060.00318.09
8.2.80.0000.00919.11
8.2.70.0080.00018.16
8.2.60.0000.00918.03
8.2.50.0050.00318.10
8.2.40.0000.00820.71
8.2.30.0050.00320.46
8.2.20.0040.00418.24
8.2.10.0040.00418.06
8.2.00.0000.00718.29
8.1.330.0090.01022.24
8.1.320.0090.01016.69
8.1.310.0110.00717.02
8.1.300.0160.00019.70
8.1.290.0090.00030.84
8.1.280.0100.01025.92
8.1.270.0080.00023.80
8.1.260.0080.00026.35
8.1.250.0070.00328.09
8.1.240.0090.00023.93
8.1.230.0080.00321.06
8.1.220.0040.00417.78
8.1.210.0030.00618.77
8.1.200.0070.00317.48
8.1.190.0030.00617.50
8.1.180.0040.00418.10
8.1.170.0080.00018.75
8.1.160.0040.00418.96
8.1.150.0040.00420.51
8.1.140.0000.00719.59
8.1.130.0000.00719.07
8.1.120.0040.00417.73
8.1.110.0050.00317.70
8.1.100.0000.00817.79
8.1.90.0040.00417.74
8.1.80.0060.00317.71
8.1.70.0040.00417.80
8.1.60.0000.00817.77
8.1.50.0030.00617.69
8.1.40.0040.00417.56
8.1.30.0080.00017.91
8.1.20.0080.00017.77
8.1.10.0000.00817.80
8.1.00.0040.00717.76
8.0.300.0040.00420.34
8.0.290.0080.00016.88
8.0.280.0030.00318.49
8.0.270.0000.00717.26
8.0.260.0070.00017.25
8.0.250.0000.00717.17
8.0.240.0030.00317.18
8.0.230.0080.00017.16
8.0.220.0030.00517.11
8.0.210.0030.00417.00
8.0.200.0000.00717.14
8.0.190.0030.00617.05
8.0.180.0040.00417.15
8.0.170.0000.00716.98
8.0.160.0070.00017.08
8.0.150.0070.00016.93
8.0.140.0000.00817.07
8.0.130.0000.00613.45
8.0.120.0040.00417.13
8.0.110.0040.00416.93
8.0.100.0040.00416.92
8.0.90.0000.00717.00
8.0.80.0030.01717.14
8.0.70.0000.00817.04
8.0.60.0040.00416.93
8.0.50.0040.00416.91
8.0.30.0090.01217.25
8.0.20.0080.01117.46
8.0.10.0040.00417.11
8.0.00.0150.00716.80
7.4.330.0050.00015.55
7.4.320.0030.00316.80
7.4.300.0030.00316.86
7.4.290.0030.00616.71
7.4.280.0040.00416.84
7.4.270.0070.00016.86
7.4.260.0000.00816.86
7.4.250.0040.00416.84
7.4.240.0080.00016.64
7.4.230.0000.00716.90
7.4.220.0120.00616.81
7.4.210.0090.00916.85
7.4.200.0000.00716.88
7.4.160.0140.00316.82
7.4.150.0150.00317.40
7.4.140.0130.00917.86
7.4.130.0110.00916.74
7.4.120.0100.01316.84
7.4.110.0080.01216.62
7.4.100.0120.00916.78
7.4.90.0020.01616.72
7.4.80.0060.01219.39
7.4.70.0110.01116.75
7.4.60.0040.01216.74
7.4.50.0060.01216.58
7.4.40.0050.01116.77
7.4.30.0150.00916.95
7.4.00.0000.01515.18
7.3.330.0060.00013.20
7.3.320.0000.00613.17
7.3.310.0000.00716.54
7.3.300.0070.00016.35
7.3.290.0000.00716.46
7.3.280.0100.00816.47
7.3.270.0070.01017.40
7.3.260.0100.01016.62
7.3.250.0120.01116.64
7.3.240.0050.01416.81
7.3.230.0150.00316.93
7.3.210.0130.00616.69
7.3.200.0060.01516.54
7.3.190.0100.00716.77
7.3.180.0140.00716.45
7.3.170.0100.00716.66
7.3.160.0100.00716.82
7.2.330.0100.00716.64
7.2.320.0130.00316.74
7.2.310.0060.01016.63
7.2.300.0130.00716.91
7.2.290.0040.01416.76
7.2.60.0060.00917.12
7.1.200.0030.01016.03
7.1.70.0000.01217.43
7.1.60.0110.00017.55
7.1.50.0070.00417.15
7.1.40.0000.01216.91
7.1.30.0000.01217.03
7.1.20.0090.00317.19
7.1.10.0030.00717.04
7.1.00.0030.00717.11
7.0.200.0030.00316.84
7.0.190.0070.00016.90
7.0.180.0070.01016.24
7.0.170.0030.00516.39
7.0.160.0030.00616.52
7.0.150.0030.00716.57
7.0.140.0000.00816.42
7.0.130.0000.01316.79
7.0.120.0030.00816.98
7.0.110.0040.00716.68
7.0.100.0080.00416.62
7.0.90.0050.01016.65
7.0.80.0030.01016.32
7.0.70.0000.00916.54
7.0.60.0040.00416.47
7.0.50.0060.00316.57
7.0.40.0040.00414.76
7.0.30.0030.00514.77
7.0.20.0040.00414.86
7.0.10.0040.00414.73
7.0.00.0040.00414.73

preferences:
29.24 ms | 403 KiB | 5 Q