3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set("pcre.jit", false); $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.0130.00719.69
8.3.50.0180.00319.46
8.3.40.0180.00620.05
8.3.30.0130.00319.93
8.3.20.0060.00323.23
8.3.10.0090.00021.73
8.3.00.0090.00022.25
8.2.180.0140.01019.73
8.2.170.0150.00922.96
8.2.160.0060.01321.80
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0000.00921.73
8.2.120.0030.00626.35
8.2.110.0080.00422.47
8.2.100.0030.01019.09
8.2.90.0060.00320.42
8.2.80.0030.00618.82
8.2.70.0090.00318.87
8.2.60.0000.00919.05
8.2.50.0060.00319.29
8.2.40.0080.00021.92
8.2.30.0040.00421.73
8.2.20.0030.00519.23
8.2.10.0040.00419.32
8.2.00.0060.00319.42
8.1.280.0200.00025.92
8.1.270.0030.00625.03
8.1.260.0040.00426.35
8.1.250.0090.00028.09
8.1.240.0000.01421.88
8.1.230.0100.00322.24
8.1.220.0000.00818.93
8.1.210.0040.00518.77
8.1.200.0000.01118.63
8.1.190.0000.00918.62
8.1.180.0040.00418.62
8.1.170.0030.00619.91
8.1.160.0050.00320.07
8.1.150.0040.00421.58
8.1.140.0040.00420.80
8.1.130.0000.00920.51
8.1.120.0040.00418.65
8.1.110.0040.00418.57
8.1.100.0040.00418.59
8.1.90.0000.00818.68
8.1.80.0070.00318.64
8.1.70.0040.00418.61
8.1.60.0070.00318.83
8.1.50.0040.00418.70
8.1.40.0040.00418.75
8.1.30.0000.00818.86
8.1.20.0000.00818.81
8.1.10.0110.00018.79
8.1.00.0030.01018.77
8.0.300.0070.00318.77
8.0.290.0040.00418.00
8.0.280.0080.00019.45
8.0.270.0080.00017.99
8.0.260.0060.00319.75
8.0.250.0000.00818.18
8.0.240.0050.00318.09
8.0.230.0060.00318.02
8.0.220.0000.00817.98
8.0.210.0000.00818.02
8.0.200.0050.00218.11
8.0.190.0030.00618.09
8.0.180.0000.00817.97
8.0.170.0030.00517.98
8.0.160.0000.00818.04
8.0.150.0040.00417.96
8.0.140.0000.00818.09
8.0.130.0030.00314.50
8.0.120.0040.00418.07
8.0.110.0050.00318.03
8.0.100.0000.00818.05
8.0.90.0030.00518.00
8.0.80.0130.01017.91
8.0.70.0080.00017.93
8.0.60.0030.00517.85
8.0.50.0050.00317.82
8.0.30.0110.00918.07
8.0.20.0090.01218.07
8.0.10.0080.00017.89
8.0.00.0070.01417.88
7.4.330.0060.00016.20
7.4.320.0000.00817.44
7.4.300.0050.00217.52
7.4.290.0040.00417.53
7.4.280.0040.00417.66
7.4.270.0050.00317.63
7.4.260.0040.00417.61
7.4.250.0050.00517.59
7.4.240.0030.00617.48
7.4.230.0050.00217.64
7.4.220.0120.00917.57
7.4.210.0090.00917.63
7.4.200.0050.00317.62
7.4.160.0150.00517.56
7.4.150.0090.01517.60
7.4.140.0150.00917.86
7.4.130.0130.00717.54
7.4.120.0150.00917.61
7.4.110.0070.01417.62
7.4.100.0090.01317.66
7.4.90.0130.00917.49
7.4.80.0080.01619.39
7.4.70.0100.01017.52
7.4.60.0040.01517.75
7.4.50.0070.00717.31
7.4.40.0100.01017.50
7.4.30.0100.01017.67
7.4.10.0030.01415.83
7.4.00.0070.01215.97
7.3.330.0030.00314.27
7.3.320.0020.00514.27
7.3.310.0000.00817.46
7.3.300.0040.00417.36
7.3.290.0070.00017.21
7.3.280.0100.00917.27
7.3.270.0250.00017.40
7.3.260.0130.01317.55
7.3.250.0110.01017.52
7.3.240.0160.00417.48
7.3.230.0080.01617.59
7.3.210.0100.01017.75
7.3.200.0130.01017.59
7.3.190.0110.01117.61
7.3.180.0070.01117.26
7.3.170.0190.00317.29
7.3.160.0130.01017.13
7.3.130.0140.00316.15
7.3.120.0130.00515.65
7.3.110.0120.00615.69
7.3.100.0090.00715.64
7.3.90.0040.00815.71
7.3.80.0050.01015.97
7.3.70.0080.00915.82
7.3.60.0100.00515.82
7.3.50.0130.00615.77
7.3.40.0120.00315.84
7.3.30.0060.01015.95
7.3.20.0100.00317.70
7.3.10.0050.01017.70
7.3.00.0060.01217.59
7.2.330.0110.01119.63
7.2.320.0040.02219.40
7.2.310.0140.01119.37
7.2.300.0120.00919.65
7.2.290.0120.00919.55
7.2.260.0130.01018.24
7.2.250.0170.00317.93
7.2.240.0080.01118.00
7.2.230.0070.01218.20
7.2.220.0080.00817.90
7.2.210.0070.00917.90
7.2.200.0120.00517.81
7.2.190.0080.01017.75
7.2.180.0020.01317.74
7.2.170.0060.01117.93
7.2.160.0060.01117.99
7.2.150.0090.00719.88
7.2.140.0060.01319.74
7.2.130.0030.01319.74
7.2.120.0140.00219.68
7.2.110.0090.00919.71
7.2.100.0060.01019.92
7.2.90.0030.01319.75
7.2.80.0050.01319.92
7.2.70.0100.00719.78
7.2.60.0050.01319.67
7.2.50.0070.01219.89
7.2.40.0100.00919.72
7.2.30.0070.00719.61
7.2.20.0070.01219.85
7.2.10.0080.01019.89
7.2.00.0070.00919.88
7.1.330.0080.01018.64
7.1.320.0030.01018.83
7.1.310.0020.01318.86
7.1.300.0090.00518.58
7.1.290.0030.01218.63
7.1.280.0080.00818.70
7.1.270.0100.00618.66
7.1.260.0070.01018.75
7.1.250.0110.00718.76
7.1.240.0150.00418.87
7.1.230.0070.01018.61
7.1.220.0070.01018.86
7.1.210.0070.01018.96
7.1.200.0080.00618.77
7.1.190.0100.00318.48
7.1.180.0100.00718.75
7.1.170.0030.01218.62
7.1.160.0070.01018.62
7.1.150.0090.00618.89
7.1.140.0130.00318.72
7.1.130.0080.01118.73
7.1.120.0030.00918.94
7.1.110.0080.00619.02
7.1.100.0040.01118.52
7.1.90.0030.00718.48
7.1.80.0060.00918.98
7.1.70.0060.00419.52
7.1.60.0050.00919.55
7.1.50.0070.01419.45
7.1.40.0070.01018.77
7.1.30.0030.01618.64
7.1.20.0500.04530.15
7.1.10.0080.03822.05
7.1.00.0370.04221.08
7.0.330.0030.00918.35
7.0.320.0150.00318.45
7.0.310.0070.01017.99
7.0.300.0030.01018.43
7.0.290.0100.00718.32
7.0.280.0070.00718.32
7.0.270.0080.00418.42
7.0.260.0090.00618.13
7.0.250.0070.00718.44
7.0.240.0030.01218.13
7.0.230.0070.01018.59
7.0.220.0000.01018.35
7.0.210.0060.00918.39
7.0.200.0050.01419.01
7.0.190.0090.00418.44
7.0.180.0070.01118.25
7.0.170.0030.01617.91
7.0.160.0100.03820.55
7.0.150.0500.03420.77
7.0.140.0370.03320.76
7.0.130.0240.04220.60
7.0.120.0140.02621.58
7.0.110.0570.04020.67
7.0.100.0570.03420.69
7.0.90.0270.02820.56
7.0.80.0140.02921.47
7.0.70.0150.03521.48
7.0.60.0130.03221.45
7.0.50.1020.04020.81
7.0.40.0470.03920.59
7.0.30.0460.03420.47
7.0.20.0330.03319.73
7.0.10.0500.03419.74
7.0.00.0420.03419.73
5.6.400.0110.00717.70
5.6.390.0030.01317.67
5.6.380.0090.00617.11
5.6.370.0060.01217.57
5.6.360.0070.01117.53
5.6.350.0040.01317.50
5.6.340.0070.00717.49
5.6.330.0110.00717.43
5.6.320.0100.00317.45
5.6.310.0040.00817.19
5.6.300.0100.00717.45
5.6.290.0100.00217.73
5.6.280.0060.01017.70
5.6.270.0030.00717.59
5.6.260.0140.00017.42
5.6.250.0060.00717.20
5.6.240.0030.01017.21
5.6.230.0060.00617.42
5.6.220.0030.01017.36
5.6.210.0100.00717.41
5.6.200.0070.01117.36
5.6.190.0120.00617.42
5.6.180.0040.00817.25
5.6.170.0110.00417.38
5.6.160.0040.01417.46
5.6.150.0040.00717.27
5.6.140.0030.00917.30
5.6.130.0030.01317.21
5.6.120.0000.01817.29
5.6.110.0150.00317.53
5.6.100.0070.01417.24
5.6.90.0100.01017.23
5.6.80.0120.00617.50
5.6.70.0060.00617.62
5.6.60.0090.00617.25
5.6.50.0100.01017.24
5.6.40.0110.00717.17
5.6.30.0140.00017.49
5.6.20.0030.01217.48
5.6.10.0000.01817.17
5.6.00.0030.00717.10

preferences:
53.32 ms | 401 KiB | 5 Q