3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/"_raw": (.*)(?=,)/m'; $str = '{ "result": { "_raw": "Jun 30 06:51:04 blablabla.com apache2: event_id="something" event="something" app="testapp" serial_number="066f1cda" revoke_reason="key compromise" revoke_comment="xxxxxx" delay_revoke="15" url="/blablabla.php" account_id="123456" user_id="xxxxxxx" staff_id="xxxx" staff_name="todd" ip_address="123.123.123.123"", "splunk_server": "splunkin02.localhost.com" }, "results_link": "https://splunk.sffew.com", "app": "search", "search_name": "TEST", "owner": "toodles@sfsfe.com", "sid": "scheduler_blahlahlah" }'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); $parsable_array = explode(' ',$matches[0][1]); $expected_array = array_filter($parsable_array, function ($var) { return (stripos($var, '=') != false); }); $final_result = []; foreach($expected_array as $str){ list($key,$value) = explode('=',$str); $final_result[$key] = trim($value,'"'); } print_r($final_result); ?>

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.5.10.0100.00816.77
8.5.00.0120.01020.22
8.4.150.0020.00014.05
8.4.140.0090.01317.86
8.4.130.0160.00518.24
8.4.120.0060.00424.16
8.4.110.0120.00920.55
8.4.100.0120.00917.90
8.4.90.0120.00918.01
8.4.80.0160.00519.69
8.4.70.0130.00620.08
8.4.60.0140.00618.74
8.4.50.0100.00919.79
8.4.40.0030.01317.91
8.4.30.0100.01020.68
8.4.20.0140.00718.24
8.4.10.0000.00821.31
8.3.280.0120.00918.75
8.3.270.0120.00816.73
8.3.260.0130.00617.07
8.3.250.0070.00318.84
8.3.240.0040.00517.18
8.3.230.0110.00916.65
8.3.220.0080.01017.30
8.3.210.0130.00618.56
8.3.200.0110.00916.54
8.3.190.0130.00717.20
8.3.180.0100.00716.78
8.3.170.0060.00818.71
8.3.160.0060.01218.41
8.3.150.0100.00620.91
8.3.140.0040.00417.18
8.3.130.0080.00018.41
8.3.120.0090.00020.60
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0130.00626.77
8.3.80.0060.00317.00
8.3.70.0130.00718.68
8.3.60.0100.00618.68
8.3.50.0130.00824.66
8.3.40.0060.00918.77
8.3.30.0120.00818.82
8.3.20.0050.00923.81
8.3.10.0100.00324.18
8.3.00.0100.00523.54
8.2.290.0130.00620.72
8.2.280.0050.00718.59
8.2.270.0150.00317.25
8.2.260.0110.00419.00
8.2.250.0060.00916.96
8.2.240.0060.01519.01
8.2.230.0080.01122.58
8.2.220.0080.00337.54
8.2.210.0080.00026.77
8.2.200.0000.00916.63
8.2.190.0110.00716.63
8.2.180.0060.00925.92
8.2.170.0110.00421.06
8.2.160.0030.01022.96
8.2.150.0120.00823.29
8.2.140.0090.00923.54
8.2.130.0100.00324.29
8.2.120.0120.00323.51
8.2.110.0120.00221.07
8.2.100.0160.00518.40
8.2.90.0090.00819.40
8.2.80.0100.00419.61
8.2.70.0130.00319.31
8.2.60.0090.00619.30
8.2.50.0050.00919.38
8.2.40.0040.00820.26
8.2.30.0110.00019.30
8.2.20.0060.00619.38
8.2.10.0110.00119.94
8.2.00.0050.00720.05
8.1.330.0130.00616.93
8.1.320.0110.00816.59
8.1.310.0030.00716.84
8.1.300.0000.00918.64
8.1.290.0060.00318.88
8.1.280.0110.00325.92
8.1.270.0060.00923.94
8.1.260.0130.00325.13
8.1.250.0090.00526.05
8.1.240.0170.00518.87
8.1.230.0060.00819.78
8.1.220.0080.00519.19
8.1.210.0110.00020.63
8.1.200.0050.01018.23
8.1.190.0160.00317.96
8.1.180.0050.01019.26
8.1.170.0040.00819.05
8.1.160.0030.00820.61
8.1.150.0110.00618.86
8.1.140.0160.00418.81
8.1.130.0060.00520.04
8.1.120.0080.00319.12
8.1.110.0130.00518.12
8.1.100.0060.00819.08
8.1.90.0070.01118.23
8.1.80.0080.00418.16
8.1.70.0060.01019.00
8.1.60.0100.00818.38
8.1.50.0100.00518.21
8.1.40.0100.00818.26
8.1.30.0050.00918.37
8.1.20.0110.00318.93
8.1.10.0170.00118.25
8.1.00.0070.01118.16
8.0.300.0070.00719.71
8.0.290.0190.00317.47
8.0.280.0160.00518.21
8.0.270.0090.00418.89
8.0.260.0140.00318.38
8.0.250.0130.00217.49
8.0.240.0170.00517.49
8.0.230.0120.00717.52
8.0.220.0060.00717.45
8.0.210.0160.00617.50
8.0.200.0150.00717.48
8.0.190.0170.00517.49
8.0.180.0080.00318.45
8.0.170.0160.00617.55
8.0.160.0050.00618.51
8.0.150.0120.01017.42
8.0.140.0120.00517.47
8.0.130.0100.00515.70
8.0.120.0190.00317.36
8.0.110.0120.00518.37
8.0.100.0090.01117.44
8.0.90.0150.00217.57
8.0.80.0140.00617.24
8.0.70.0080.00318.29
8.0.60.0100.00517.49
8.0.50.0110.00517.56
8.0.30.0020.01418.53
8.0.20.0100.00718.02
8.0.10.0130.00417.50
8.0.00.0130.01118.35
7.4.330.0100.00814.82
7.4.320.0170.00217.15
7.4.300.0110.00717.16
7.4.290.0090.00516.89
7.4.280.0120.00717.15
7.4.270.0120.00917.09
7.4.260.0140.00815.47
7.4.250.0170.00417.11
7.4.240.0150.00417.17
7.4.230.0130.00517.10
7.4.220.0130.00217.06
7.4.210.0100.01017.02
7.4.200.0150.00517.16
7.4.190.0260.00317.55
7.4.180.0180.01417.71
7.4.160.0250.01717.66
7.4.150.0280.00417.63
7.4.140.0190.01117.52
7.4.130.0120.01117.07
7.4.120.0150.01217.30
7.4.110.0160.00717.22
7.4.100.0130.01017.11
7.4.90.0160.00717.19
7.4.80.0180.00518.55
7.4.70.0150.01417.07
7.4.60.0200.00716.99
7.4.50.0160.00717.12
7.4.40.0150.00717.07
7.4.30.0140.00817.14
7.4.20.0130.00817.20
7.4.10.0180.00717.08
7.4.00.0110.01217.17
7.3.330.0160.00316.96
7.3.320.0140.00515.38
7.3.310.0120.00717.02
7.3.300.0110.00617.12
7.3.290.0130.00916.70
7.3.280.0190.00616.93
7.3.270.0210.00917.30
7.3.260.0160.00816.99
7.3.250.0210.00717.30
7.3.240.0140.00616.79
7.3.230.0170.00517.09
7.3.220.0260.00317.30
7.3.210.0130.01017.04
7.3.200.0180.00717.03
7.3.190.0200.00617.02
7.3.180.0180.00717.13
7.3.170.0140.00717.32
7.3.160.0150.00716.90
7.3.150.0250.00616.98
7.3.140.0140.01117.04
7.3.130.0220.01017.04
7.3.120.0190.00917.14
7.3.110.0090.01117.28
7.3.100.0170.00716.95
7.3.90.0240.00117.31
7.3.80.0230.00416.98
7.3.70.0170.00917.09
7.3.60.0140.01416.87
7.3.50.0210.00717.10
7.3.40.0190.00417.06
7.3.30.0140.00917.14
7.3.20.0110.00717.18
7.3.10.0180.00617.96
7.3.00.0240.00817.98
7.2.340.0230.01017.55
7.2.330.0200.00817.34
7.2.320.0170.00917.09
7.2.310.0210.00717.28
7.2.300.0140.01017.32
7.2.290.0140.00817.26
7.2.280.0160.00817.31
7.2.270.0180.01117.25
7.2.260.0210.00617.43
7.2.250.0190.00417.28
7.2.240.0170.00717.32
7.2.230.0180.00517.28
7.2.220.0190.00517.34
7.2.210.0190.00717.18
7.2.200.0210.00617.38
7.2.190.0250.00317.18
7.2.180.0180.00717.20
7.2.170.0110.01217.25
7.2.160.0200.00317.27
7.2.150.0120.01118.10
7.2.140.0200.00718.03
7.2.130.0170.00618.18
7.2.120.0160.00718.25
7.2.110.0280.00218.26
7.2.100.0150.00818.18
7.2.90.0170.01318.19
7.2.80.0200.00618.33
7.2.70.0190.00718.18
7.2.60.0230.00818.07
7.2.50.0150.01618.28
7.2.40.0250.00718.34
7.2.30.0230.00818.24
7.2.20.0200.01218.17
7.2.10.0180.01518.25
7.2.00.0180.00418.26

preferences:
36.1 ms | 403 KiB | 5 Q