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,$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.0070.01418.68
8.3.50.0160.00522.05
8.3.40.0140.00318.68
8.3.30.0070.00720.17
8.3.20.0080.00020.29
8.3.10.0000.00821.97
8.3.00.0070.00022.44
8.2.180.0070.00717.00
8.2.170.0110.00422.96
8.2.160.0100.00322.29
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0040.00419.66
8.2.110.0060.00322.20
8.2.100.0040.00719.82
8.2.90.0040.00419.09
8.2.80.0030.00519.27
8.2.70.0030.00617.63
8.2.60.0030.00517.80
8.2.50.0060.00318.07
8.2.40.0000.00818.16
8.2.30.0030.00618.09
8.2.20.0040.00417.68
8.2.10.0000.00817.77
8.2.00.0080.00317.84
8.1.280.0070.01125.92
8.1.270.0070.00024.66
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0070.00323.88
8.1.230.0080.00319.16
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00717.35
8.1.190.0080.00017.39
8.1.180.0030.00519.14
8.1.170.0080.00018.75
8.1.160.0040.00422.08
8.1.150.0030.00618.65
8.1.140.0000.00717.47
8.1.130.0070.00017.94
8.1.120.0080.00017.56
8.1.110.0030.00517.54
8.1.100.0040.00417.62
8.1.90.0040.00417.62
8.1.80.0070.00017.52
8.1.70.0040.00417.46
8.1.60.0030.00617.66
8.1.50.0040.00417.61
8.1.40.0040.00417.52
8.1.30.0060.00317.73
8.1.20.0050.00317.63
8.1.10.0000.00717.63
8.1.00.0000.00717.50
8.0.300.0000.00818.77
8.0.290.0030.00617.18
8.0.280.0040.00418.42
8.0.270.0080.00017.23
8.0.260.0000.00716.98
8.0.250.0050.00217.13
8.0.240.0040.00417.18
8.0.230.0050.00217.05
8.0.220.0070.00017.01
8.0.210.0070.00017.05
8.0.200.0000.00717.11
8.0.190.0040.00317.09
8.0.180.0100.00017.04
8.0.170.0040.00417.13
8.0.160.0000.00817.16
8.0.150.0030.00316.99
8.0.140.0070.00016.92
8.0.130.0030.00313.52
8.0.120.0080.00016.93
8.0.110.0080.00017.00
8.0.100.0050.00316.89
8.0.90.0000.00816.92
8.0.80.0110.00417.01
8.0.70.0000.00716.93
8.0.60.0040.00416.88
8.0.50.0020.00517.09
8.0.30.0130.00917.24
8.0.20.0080.01117.40
8.0.10.0040.00417.01
8.0.00.0100.01016.78
7.4.330.0060.00015.00
7.4.320.0060.00016.57
7.4.300.0000.00616.73
7.4.290.0000.00716.79
7.4.280.0000.00716.61
7.4.270.0000.00616.76
7.4.260.0000.00716.56
7.4.250.0000.00716.63
7.4.240.0000.00716.68
7.4.230.0040.00416.77
7.4.220.0100.01016.79
7.4.210.0090.00616.74
7.4.200.0030.00316.76
7.4.190.0000.00716.84
7.4.160.0110.00816.84
7.4.150.0060.01117.40
7.4.140.0080.01217.86
7.4.130.0060.01116.66
7.4.120.0060.01116.63
7.4.110.0090.01416.59
7.4.100.0090.00916.68
7.4.90.0170.01216.83
7.4.80.0070.01119.39
7.4.70.0070.01016.60
7.4.60.0110.00516.52
7.4.50.0050.00316.43
7.4.40.0150.00022.77
7.4.30.0090.01216.57
7.4.00.0060.01115.05
7.3.330.0000.00513.28
7.3.320.0020.00213.28
7.3.310.0070.00016.33
7.3.300.0000.00816.36
7.3.290.0110.00316.26
7.3.280.0030.01216.37
7.3.270.0070.01017.40
7.3.260.0140.00316.37
7.3.250.0120.00716.45
7.3.240.0120.00916.63
7.3.230.0110.01216.59
7.3.210.0070.01016.59
7.3.200.0130.00419.39
7.3.190.0120.01216.36
7.3.180.0070.01016.66
7.3.170.0080.00816.59
7.3.160.0110.00416.30
7.3.120.0050.00914.93
7.3.110.0110.00714.88
7.3.100.0120.00314.48
7.3.90.0070.00714.68
7.3.80.0050.00514.78
7.3.70.0060.00914.67
7.3.60.0080.00414.98
7.3.50.0030.01114.62
7.3.40.0000.01214.95
7.3.30.0060.00314.96
7.3.20.0040.00816.67
7.3.10.0030.00616.61
7.3.00.0030.01316.68
7.2.330.0100.00716.76
7.2.320.0140.00516.65
7.2.310.0070.01016.75
7.2.300.0120.00616.71
7.2.290.0110.00516.67
7.2.250.0080.00815.21
7.2.240.0070.01315.11
7.2.230.0100.00715.07
7.2.220.0060.00614.99
7.2.210.0030.00915.21
7.2.200.0100.00614.95
7.2.190.0040.01114.88
7.2.180.0040.00815.10
7.2.170.0040.00815.16
7.2.60.0070.01016.73
7.2.00.0110.00719.43
7.1.330.0060.00615.82
7.1.320.0030.00715.89
7.1.310.0070.00715.72
7.1.300.0060.00315.88
7.1.290.0030.01015.83
7.1.280.0040.01115.63
7.1.270.0040.00415.74
7.1.260.0000.01015.95
7.1.200.0040.00515.93
7.1.70.0030.00717.14
7.1.60.0090.00917.45
7.1.50.0000.01116.91
7.1.40.0030.00916.73
7.1.30.0040.00817.01
7.1.20.0100.00316.89
7.1.10.0000.00916.91
7.1.00.0090.00017.12
7.0.200.0090.00616.87
7.0.190.0040.01216.86
7.0.180.0040.00416.70
7.0.170.0050.00316.70
7.0.160.0070.00016.70
7.0.150.0000.00716.70
7.0.140.0060.00316.70
7.0.130.0000.00816.70
7.0.120.0000.01016.70
7.0.110.0050.00516.70
7.0.100.0050.00316.70
7.0.90.0040.00816.70
7.0.80.0040.00416.70
7.0.70.0030.00616.70
7.0.60.0000.00816.70
7.0.50.0060.00316.70
7.0.40.0100.00616.70
7.0.30.0040.01116.70
7.0.20.0040.01116.70
7.0.10.0000.00916.70
7.0.00.0000.00816.70
5.6.300.0000.04520.73
5.6.290.0070.05520.97
5.6.280.0000.04821.20
5.6.270.0030.04021.23
5.6.260.0000.04321.19
5.6.250.0030.04021.03
5.6.240.0100.04021.13
5.6.230.0000.04421.01
5.6.220.0000.04421.00
5.6.210.0030.04620.77
5.6.200.0070.05120.89
5.6.190.0130.03620.99
5.6.180.0100.08120.99
5.6.170.0060.06520.99
5.6.160.0070.04121.14
5.6.150.0030.04221.18
5.6.140.0070.04220.98
5.6.130.0000.04420.98
5.6.120.0100.07221.14
5.6.110.0100.03620.97
5.6.100.0000.04520.98
5.6.90.0070.04221.14
5.6.80.0100.03120.47
5.6.70.0130.03220.36
5.6.60.0000.04320.37
5.6.50.0030.04420.50
5.6.40.0100.06420.48
5.6.30.0130.03220.57
5.6.20.0030.06220.47
5.6.10.0100.03120.34
5.6.00.0000.05620.34
5.5.380.0070.04617.77
5.5.370.0000.04717.77
5.5.360.0060.03617.73
5.5.350.0000.04217.59
5.5.340.0100.04218.31
5.5.330.0040.04218.22
5.5.320.0100.04618.19
5.5.310.0070.03618.19
5.5.300.0030.05718.19
5.5.290.0000.04518.27
5.5.280.0100.04118.18
5.5.270.0070.04317.92
5.5.260.0000.04317.94
5.5.250.0000.04217.99
5.5.240.0030.03717.66
5.5.230.0030.03917.57
5.5.220.0000.04117.65
5.5.210.0030.04517.31
5.5.200.0030.04317.29
5.5.190.0100.03117.67
5.5.180.0000.08517.40
5.5.160.0070.03317.26
5.5.150.0030.10117.62
5.5.140.0060.04117.56
5.5.130.0030.06417.55
5.5.120.0030.03717.62
5.5.110.0000.04917.65
5.5.100.0030.03617.50
5.5.90.0070.05717.52
5.5.80.0100.04017.61
5.5.70.0060.03517.19
5.5.60.0030.03717.55
5.5.50.0000.04217.26
5.5.40.0030.03817.17
5.5.30.0030.04317.52
5.5.20.0030.04517.48
5.5.10.0030.03917.48
5.5.00.0000.06417.45
5.4.450.0030.04619.71
5.4.440.0000.04719.66
5.4.430.0000.04719.72
5.4.420.0060.04219.60
5.4.410.0060.05219.31
5.4.400.0070.03719.41
5.4.390.0030.04019.24
5.4.380.0040.03919.41
5.4.370.0000.05419.29
5.4.360.0030.03819.24
5.4.350.0030.03719.41
5.4.340.0000.04619.16
5.4.320.0090.04419.09
5.4.310.0030.04819.26
5.4.300.0030.06319.15
5.4.290.0030.05619.40
5.4.280.0030.04219.33
5.4.270.0030.07119.15
5.4.260.0000.04419.25
5.4.250.0030.04319.30
5.4.240.0030.03619.31
5.4.230.0060.03519.09
5.4.220.0070.04019.09
5.4.210.0030.03719.30
5.4.200.0000.04419.23
5.4.190.0030.04219.08
5.4.180.0030.03919.24
5.4.170.0060.03519.11
5.4.160.0130.05919.16
5.4.150.0000.04719.07
5.4.140.0030.04616.92
5.4.130.0030.03816.84
5.4.120.0030.04616.70
5.4.110.0030.04016.70
5.4.100.0040.03616.95
5.4.90.0030.06116.75
5.4.80.0030.04516.84
5.4.70.0030.03616.73
5.4.60.0000.05216.88
5.4.50.0060.03216.70
5.4.40.0030.03816.92
5.4.30.0060.03816.70
5.4.20.0070.03016.70
5.4.10.0070.05516.75
5.4.00.0030.03316.70
5.3.290.0030.05816.70
5.3.280.0000.04516.70
5.3.270.0000.04116.70
5.3.260.0030.04216.70
5.3.250.0070.05416.70
5.3.240.0030.03816.70
5.3.230.0000.04116.70
5.3.220.0070.03916.70
5.3.210.0070.07316.70
5.3.200.0000.04116.70
5.3.190.0000.07816.70
5.3.180.0030.04316.70
5.3.170.0070.03216.70
5.3.160.0030.03916.70
5.3.150.0000.04216.70
5.3.140.0100.03316.70
5.3.130.0000.04016.70
5.3.120.0030.04516.70
5.3.110.0000.04216.70
5.3.100.0070.03316.70
5.3.90.0070.03916.70
5.3.80.0060.07416.70
5.3.70.0070.07416.70
5.3.60.0070.05916.70
5.3.50.0070.03316.70
5.3.40.0160.03216.70
5.3.30.0000.03916.70
5.3.20.0070.03116.70
5.3.10.0060.05816.70
5.3.00.0030.06916.70
5.2.170.0030.03116.70
5.2.160.0070.02716.70
5.2.150.0060.02616.70
5.2.140.0000.03416.70
5.2.130.0000.05516.70
5.2.120.0000.03216.70
5.2.110.0000.03216.70
5.2.100.0030.03016.70
5.2.90.0140.02516.70
5.2.80.0040.02816.70
5.2.70.0070.03716.70
5.2.60.0070.04916.70
5.2.50.0060.02516.70
5.2.40.0030.06716.70
5.2.30.0030.06216.70
5.2.20.0070.04416.70
5.2.10.0030.02716.70
5.2.00.0030.03116.70
5.1.60.0030.02316.70
5.1.50.0030.02516.70
5.1.40.0040.03216.70
5.1.30.0000.03016.70
5.1.20.0070.02616.70
5.1.10.0000.02816.70
5.1.00.0000.02816.70
5.0.50.0030.02416.70
5.0.40.0030.02016.70
5.0.30.0000.03316.70
5.0.20.0000.03316.70
5.0.10.0000.02716.70
5.0.00.0030.05816.70
4.4.90.0030.01316.70
4.4.80.0030.02216.70
4.4.70.0030.01416.70
4.4.60.0000.03816.70
4.4.50.0000.01616.70
4.4.40.0070.02016.70
4.4.30.0000.03216.70
4.4.20.0030.01616.70
4.4.10.0000.03616.70
4.4.00.0000.03916.70
4.3.110.0000.03116.70
4.3.100.0060.01316.70
4.3.90.0030.01816.70
4.3.80.0060.03816.70
4.3.70.0000.01816.70
4.3.60.0060.02916.70
4.3.50.0000.02616.70
4.3.40.0030.04516.70
4.3.30.0000.02716.70
4.3.20.0030.02016.70
4.3.10.0000.02316.70
4.3.00.0000.01816.70

preferences:
58.72 ms | 400 KiB | 5 Q