3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = ' input { redis { host => "192.168.2.17" type => "nginx access" data_type => "list" key => "nginx access" password => "v5XBbZHcbaKFQr3kRFLqjZV5" } redis { host => "192.168.1.33" type => "nginx access" data_type => "list" key => "nginx access" password => "v5XBbZHcbaKFQr3kRFLqjZV5" } } input { redis { host => "192.168.2.17" type => "nginx access" data_type => "list" key => "nginx access" password => "v5XBbZHcbaKFQr3kRFLqjZV5" } redis { host => "192.168.1.33" type => "nginx access" data_type => "list" key => "nginx access" password => "v5XBbZHcbaKFQr3kRFLqjZV5" } } '; preg_match_all('~\{(?:[^{}]|(?R))*\}~', $input, $sectors); preg_match_all("input \{(.*)\}",$input,$sectors); print_r($sectors);

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.0120.00318.33
8.3.50.0050.01122.05
8.3.40.0130.00619.14
8.3.30.0030.01020.21
8.3.20.0040.00420.37
8.3.10.0140.00322.09
8.3.00.0070.00022.44
8.2.180.0150.00617.13
8.2.170.0070.01422.96
8.2.160.0170.00322.34
8.2.150.0070.00724.18
8.2.140.0190.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00019.77
8.2.110.0030.00620.34
8.2.100.0030.01017.91
8.2.90.0000.00919.08
8.2.80.0000.00819.38
8.2.70.0060.00317.75
8.2.60.0050.00318.04
8.2.50.0000.00918.07
8.2.40.0050.00318.08
8.2.30.0030.00618.05
8.2.20.0030.00517.71
8.2.10.0030.00517.79
8.2.00.0030.00717.84
8.1.280.0130.01025.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0070.00328.09
8.1.240.0030.00623.71
8.1.230.0040.00720.87
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0110.00017.35
8.1.190.0040.00417.51
8.1.180.0000.00819.13
8.1.170.0040.00418.57
8.1.160.0040.00422.19
8.1.150.0030.00618.66
8.1.140.0050.00317.52
8.1.130.0030.00517.87
8.1.120.0000.00717.45
8.1.110.0050.00217.44
8.1.100.0040.00417.53
8.1.90.0040.00417.49
8.1.80.0000.00817.56
8.1.70.0070.00017.48
8.1.60.0000.00917.60
8.1.50.0050.00317.54
8.1.40.0000.00817.48
8.1.30.0000.00817.75
8.1.20.0030.00617.61
8.1.10.0030.00617.67
8.1.00.0040.00417.58
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0070.00018.43
8.0.270.0000.00717.15
8.0.260.0030.00316.88
8.0.250.0040.00417.14
8.0.240.0040.00417.10
8.0.230.0070.00017.05
8.0.220.0000.00717.04
8.0.210.0000.00717.05
8.0.200.0030.00317.12
8.0.190.0040.00417.12
8.0.180.0060.00617.11
8.0.170.0050.00217.02
8.0.160.0050.00317.10
8.0.150.0020.00516.96
8.0.140.0000.00816.94
8.0.130.0000.00513.48
8.0.120.0030.00516.95
8.0.110.0040.00417.04
8.0.100.0040.00416.84
8.0.90.0000.00717.11
8.0.80.0110.00616.97
8.0.70.0000.00717.02
8.0.60.0050.00316.95
8.0.50.0050.00216.98
8.0.30.0060.01517.30
8.0.20.0120.00817.40
8.0.10.0050.00317.12
8.0.00.0140.00616.85
7.4.330.0000.00615.00
7.4.320.0060.00016.68
7.4.300.0070.00016.62
7.4.290.0040.00416.77
7.4.280.0070.00016.73
7.4.270.0000.00716.53
7.4.260.0000.00716.55
7.4.250.0000.00816.59
7.4.240.0020.00616.71
7.4.230.0040.00416.77
7.4.220.0070.01116.62
7.4.210.0080.00816.87
7.4.200.0030.00316.61
7.4.190.0000.00816.57
7.4.160.0120.00316.78
7.4.150.0070.01017.40
7.4.140.0100.01217.86
7.4.130.0090.01016.63
7.4.120.0080.00916.68
7.4.110.0110.00816.53
7.4.100.0100.00716.55
7.4.90.0130.00616.71
7.4.80.0060.01519.39
7.4.70.0100.00616.66
7.4.60.0090.00916.54
7.4.50.0080.00016.91
7.4.40.0050.00522.77
7.4.30.0090.00916.65
7.4.00.0120.00415.29
7.3.330.0020.00213.17
7.3.320.0030.00213.20
7.3.310.0040.00416.30
7.3.300.0000.00716.41
7.3.290.0140.00016.35
7.3.280.0070.01116.39
7.3.270.0060.01017.40
7.3.260.0090.00916.39
7.3.250.0110.00616.42
7.3.240.0100.00716.54
7.3.230.0090.00916.56
7.3.210.0030.01416.72
7.3.200.0140.00319.39
7.3.190.0060.01616.34
7.3.180.0030.01316.37
7.3.170.0030.01416.27
7.3.160.0100.00716.55
7.3.120.0060.00614.89
7.2.330.0100.00616.52
7.2.320.0030.01816.69
7.2.310.0120.00616.56
7.2.300.0030.01816.49
7.2.290.0120.00316.61
7.2.80.0060.00316.55
7.2.00.0060.00619.60
7.1.200.0060.00615.67
7.1.100.0090.00918.22
7.1.70.0000.00717.35
7.1.60.0140.01019.43
7.1.50.0040.02116.72
7.1.00.0000.05322.34
7.0.200.0080.00316.91
7.0.140.0070.07021.99
7.0.60.0030.09019.93
7.0.50.0070.07717.94
7.0.40.0100.08320.29
7.0.30.0330.05720.28
7.0.20.0330.04020.21
7.0.10.0370.07720.09
7.0.00.0030.06020.27
5.6.280.0030.06721.04
5.6.210.0170.07720.77
5.6.200.0030.04018.42
5.6.190.0030.07720.78
5.6.180.0230.07020.70
5.6.170.0270.03020.76
5.6.160.0070.07720.74
5.6.150.0170.07018.32
5.6.140.0100.08018.36
5.6.130.0130.03718.32
5.6.120.0030.04721.05
5.6.110.0070.08721.14
5.6.100.0030.06321.26
5.6.90.0100.07721.26
5.6.80.0000.04020.62
5.5.350.0070.07020.53
5.5.340.0070.07318.18
5.5.330.0070.08320.59
5.5.320.0200.03720.53
5.5.310.0330.07020.45
5.5.300.0030.04018.25
5.5.290.0030.07718.25
5.5.280.0070.03721.02
5.5.270.0070.08020.99
5.5.260.0030.04021.01
5.5.250.0070.06320.76
5.5.240.0100.03320.40
5.4.450.0830.07319.52
5.4.440.1200.05019.62
5.4.430.0730.06319.80
5.4.420.1000.05719.36
5.4.410.1030.05019.49
5.4.400.1200.06718.80
5.4.390.1370.05718.63
5.4.380.0400.05318.98
5.4.370.0130.05718.66
5.4.360.0370.05018.92
5.4.350.0110.04212.17
5.4.340.0110.03912.17
5.4.320.0070.03512.66
5.4.310.0040.04012.65
5.4.300.0060.03712.66
5.4.290.0070.03612.65
5.4.280.0080.03212.54
5.4.270.0070.03612.54
5.4.260.0070.03712.54
5.4.250.0060.04312.54
5.3.290.0100.03612.92
4.3.00.0100.0236.84

preferences:
35.62 ms | 401 KiB | 5 Q