3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<_JSON { "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" } } _JSON; $raw = json_decode($json)->result->_raw; $marker = 'apache2: '; $startAt = strpos($raw, $marker) + strlen($marker); preg_match_all('/(\w+)="(.*?)"/', $raw, $matches, PREG_PATTERN_ORDER, $startAt); $result = array_combine($matches[1], $matches[2]); print_r($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.00.0130.00820.32
8.4.150.0030.00014.05
8.4.140.0110.01417.91
8.4.130.0060.00518.24
8.4.120.0120.00820.69
8.4.110.0070.00618.63
8.4.100.0090.01117.91
8.4.90.0040.00520.73
8.4.80.0120.00918.08
8.4.70.0130.00917.93
8.4.60.0120.01020.56
8.4.50.0110.00719.63
8.4.40.0060.00318.02
8.4.30.0170.00320.14
8.4.20.0070.01319.69
8.4.10.0030.00621.39
8.3.280.0110.00918.67
8.3.270.0090.01216.67
8.3.260.0090.01116.64
8.3.250.0090.01018.73
8.3.240.0130.00716.79
8.3.230.0090.01016.56
8.3.220.0100.00818.86
8.3.210.0070.00718.33
8.3.200.0040.00516.53
8.3.190.0090.00317.27
8.3.180.0050.00418.41
8.3.170.0040.00418.87
8.3.160.0080.01118.44
8.3.150.0060.01220.57
8.3.140.0030.00619.00
8.3.130.0040.00418.41
8.3.120.0120.00319.00
8.3.110.0050.00316.88
8.3.100.0030.00624.06
8.3.90.0110.00426.77
8.3.80.0000.00919.36
8.3.70.0150.00718.20
8.3.60.0160.00018.34
8.3.50.0100.00724.55
8.3.40.0090.00618.92
8.3.30.0090.00619.02
8.3.20.0050.00224.18
8.3.10.0070.00024.66
8.3.00.0090.00026.16
8.2.290.0080.01220.25
8.2.280.0090.00818.59
8.2.270.0070.01117.39
8.2.260.0030.00618.72
8.2.250.0110.00416.96
8.2.240.0050.00318.89
8.2.230.0000.00920.94
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0030.00618.88
8.2.190.0080.00817.00
8.2.180.0110.00425.92
8.2.170.0100.01018.87
8.2.160.0120.00622.96
8.2.150.0100.00325.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00721.13
8.2.110.0070.00321.15
8.2.100.0060.00617.84
8.2.90.0000.00818.09
8.2.80.0070.00317.97
8.2.70.0030.00517.93
8.2.60.0040.00418.09
8.2.50.0070.00318.10
8.2.40.0030.00619.47
8.2.30.0050.00519.29
8.2.20.0040.00418.14
8.2.10.0050.00219.23
8.2.00.0020.00519.29
8.1.330.0110.00721.93
8.1.320.0100.01016.14
8.1.310.0060.01316.67
8.1.300.0140.00020.25
8.1.290.0060.00330.84
8.1.280.0080.01125.92
8.1.270.0090.00023.99
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0060.00322.14
8.1.230.0080.00421.03
8.1.220.0040.00417.74
8.1.210.0040.00418.89
8.1.200.0040.00417.35
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0030.00718.71
8.1.160.0030.00319.01
8.1.150.0000.00718.78
8.1.140.0040.00420.80
8.1.130.0020.00518.78
8.1.120.0040.00317.63
8.1.110.0060.00317.55
8.1.100.0100.00417.57
8.1.90.0040.00417.55
8.1.80.0020.00717.53
8.1.70.0060.00317.52
8.1.60.0040.00617.68
8.1.50.0050.00417.69
8.1.40.0060.00417.57
8.1.30.0140.00417.75
8.1.20.0100.00317.73
8.1.10.0100.00217.70
8.1.00.0090.00317.57
8.0.300.0050.00219.77
8.0.290.0040.00416.88
8.0.280.0050.00318.42
8.0.270.0000.00816.90
8.0.260.0030.00517.90
8.0.250.0040.00517.22
8.0.240.0090.00017.20
8.0.230.0040.00417.21
8.0.220.0040.00517.23
8.0.210.0060.00317.20
8.0.200.0050.00617.13
8.0.190.0080.00317.21
8.0.180.0070.00417.13
8.0.170.0070.00417.18
8.0.160.0010.00917.18
8.0.150.0040.00517.10
8.0.140.0050.00517.08
8.0.130.0090.00115.96
8.0.120.0080.00317.16
8.0.110.0040.00717.12
8.0.100.0080.00417.16
8.0.90.0080.00717.13
8.0.80.0070.00717.09
8.0.70.0100.00117.16
8.0.60.0060.00617.17
8.0.50.0050.00517.15
8.0.30.0060.00817.12
8.0.20.0100.00617.13
8.0.10.0080.00317.18
8.0.00.0070.00817.18
7.4.330.0080.00216.46
7.4.320.0090.00317.06
7.4.300.0080.00516.93
7.4.290.0110.00317.01
7.4.280.0070.00616.94
7.4.270.0120.00316.92
7.4.260.0100.00215.87
7.4.250.0130.00116.95
7.4.240.0090.00516.97
7.4.230.0110.00316.97
7.4.220.0090.00216.94
7.4.210.0070.00816.93
7.4.200.0100.00416.90
7.4.190.0150.00317.06
7.4.180.0150.00217.04
7.4.160.0110.00617.08
7.4.150.0120.00417.02
7.4.140.0090.00617.06
7.4.130.0120.00616.86
7.4.120.0110.00616.92
7.4.110.0030.01316.97
7.4.100.0110.00616.98
7.4.90.0080.00516.90
7.4.80.0070.00717.83
7.4.70.0060.00916.90
7.4.60.0100.00616.92
7.4.50.0070.00716.77
7.4.40.0090.00416.77
7.4.30.0100.00716.80
7.4.20.0110.00316.83
7.4.10.0070.00616.87
7.4.00.0050.00816.91
7.3.330.0090.00416.77
7.3.320.0090.00315.71
7.3.310.0100.00216.77
7.3.300.0120.00016.69
7.3.290.0090.00616.61
7.3.280.0110.00416.73
7.3.270.0110.00416.91
7.3.260.0110.00816.86
7.3.250.0120.00516.86
7.3.240.0130.00516.65
7.3.230.0090.00816.86
7.3.220.0090.00616.80
7.3.210.0110.00516.81
7.3.200.0080.00716.70
7.3.190.0140.00516.74
7.3.180.0110.00616.80
7.3.170.0120.00316.76
7.3.160.0100.00716.68
7.3.150.0110.00516.78
7.3.140.0090.00716.74
7.3.130.0100.00516.72
7.3.120.0100.00516.77
7.3.110.0100.00716.70
7.3.100.0120.00416.72
7.3.90.0100.00616.99
7.3.80.0100.00716.82
7.3.70.0130.00216.80
7.3.60.0080.00716.82
7.3.50.0100.00516.82
7.3.40.0160.00116.85
7.3.30.0120.00516.84
7.3.20.0080.01017.50
7.3.10.0210.00217.39
7.3.00.0140.00417.48
7.2.340.0070.00516.69
7.2.330.0070.00916.83
7.2.320.0130.00416.85
7.2.310.0100.00616.87
7.2.300.0140.00316.85
7.2.290.0110.00616.89
7.2.280.0120.00516.94
7.2.270.0140.00516.86
7.2.260.0130.00416.95
7.2.250.0060.01016.81
7.2.240.0130.00616.91
7.2.230.0170.00216.95
7.2.220.0130.00316.89
7.2.210.0110.00616.86
7.2.200.0100.00716.99
7.2.190.0060.01116.97
7.2.180.0100.00716.94
7.2.170.0120.00616.90
7.2.160.0150.00316.94
7.2.150.0140.00317.46
7.2.140.0120.00617.58
7.2.130.0110.00817.57
7.2.120.0110.00617.49
7.2.110.0330.00517.59
7.2.100.0090.01017.63
7.2.90.0080.00917.56
7.2.80.0100.00717.66
7.2.70.0120.00617.58
7.2.60.0120.00517.59
7.2.50.0130.00517.59
7.2.40.0110.00617.57
7.2.30.0110.00717.63
7.2.20.0150.00317.50
7.2.10.0110.00717.53
7.2.00.0120.00517.58

preferences:
147.34 ms | 403 KiB | 5 Q