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.70.0120.00916.73
8.3.60.0140.00718.56
8.3.50.0100.00721.97
8.3.40.0110.00418.96
8.3.30.0070.00720.13
8.3.20.0000.01420.29
8.3.10.0070.00722.03
8.3.00.0040.00422.34
8.2.180.0070.01316.47
8.2.170.0110.00422.96
8.2.160.0090.00620.35
8.2.150.0050.00324.18
8.2.140.0120.00624.66
8.2.130.0040.00426.16
8.2.120.0080.00019.66
8.2.110.0090.00022.42
8.2.100.0110.00017.90
8.2.90.0040.00419.28
8.2.80.0060.00319.34
8.2.70.0070.00317.63
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0040.00418.03
8.2.30.0000.00717.99
8.2.20.0040.00417.77
8.2.10.0000.00817.80
8.2.00.0030.00617.70
8.1.280.0070.01025.92
8.1.270.0000.00824.66
8.1.260.0070.00026.35
8.1.250.0090.00028.09
8.1.240.0050.00523.68
8.1.230.0030.00722.15
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0040.00417.29
8.1.180.0060.00319.14
8.1.170.0000.00818.68
8.1.160.0070.00022.18
8.1.150.0000.01118.78
8.1.140.0000.00817.60
8.1.130.0000.00717.87
8.1.120.0000.00717.45
8.1.110.0070.00017.59
8.1.100.0000.00717.55
8.1.90.0050.00317.55
8.1.80.0040.00317.61
8.1.70.0030.00317.53
8.1.60.0030.00617.59
8.1.50.0080.00017.64
8.1.40.0000.00817.66
8.1.30.0040.00417.75
8.1.20.0040.00417.72
8.1.10.0000.00917.57
8.1.00.0050.00217.48
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0000.01018.49
8.0.270.0030.00317.23
8.0.260.0070.00016.98
8.0.250.0030.00317.16
8.0.240.0040.00417.08
8.0.230.0030.00317.02
8.0.220.0000.00717.10
8.0.210.0000.00716.99
8.0.200.0000.00617.15
8.0.190.0050.00317.17
8.0.180.0030.00717.08
8.0.170.0040.00416.96
8.0.160.0030.00317.02
8.0.150.0000.00816.88
8.0.140.0040.00417.08
8.0.130.0000.00613.49
8.0.120.0030.00517.07
8.0.110.0040.00417.03
8.0.100.0070.00016.85
8.0.90.0000.00817.05
8.0.80.0140.00017.04
8.0.70.0040.00416.99
8.0.60.0000.00817.10
8.0.50.0040.00416.86
8.0.30.0090.01017.33
8.0.20.0150.00517.40
8.0.10.0000.00717.19
8.0.00.0090.01217.00
7.4.330.0000.00515.00
7.4.320.0060.00016.68
7.4.300.0070.00016.65
7.4.290.0000.00716.74
7.4.280.0050.00316.59
7.4.270.0000.00816.63
7.4.260.0030.00716.71
7.4.250.0070.00016.68
7.4.240.0020.00516.70
7.4.230.0030.00316.86
7.4.220.0060.01316.64
7.4.210.0070.00916.80
7.4.200.0030.00316.77
7.4.190.0000.00716.63
7.4.160.0080.00816.78
7.4.150.0100.01017.40
7.4.140.0110.00817.86
7.4.130.0100.01016.72
7.4.120.0140.00316.58
7.4.110.0030.01416.57
7.4.100.0110.00716.59
7.4.90.0120.01216.54
7.4.80.0030.01519.39
7.4.70.0090.00616.78
7.4.60.0070.01016.68
7.4.50.0060.00316.54
7.4.40.0070.01022.77
7.4.30.0110.00816.65
7.4.00.0080.00815.08
7.3.330.0030.00313.11
7.3.320.0030.00313.10
7.3.310.0030.00316.45
7.3.300.0070.00016.36
7.3.290.0150.00016.30
7.3.280.0060.01016.32
7.3.270.0100.00617.40
7.3.260.0210.00416.40
7.3.250.0160.00516.40
7.3.240.0120.00616.52
7.3.230.0100.00716.39
7.3.210.0080.00916.41
7.3.200.0090.01319.39
7.3.190.0160.00816.40
7.3.180.0000.01516.45
7.3.170.0000.02216.47
7.3.160.0060.01416.34
7.3.120.0050.01215.00
7.3.110.0000.01914.88
7.3.100.0030.01314.96
7.3.90.0000.01214.72
7.3.80.0120.00415.07
7.3.70.0060.00914.70
7.3.60.0040.01114.89
7.3.50.0070.00715.07
7.3.40.0030.01014.92
7.3.30.0100.00314.80
7.3.20.0130.00016.55
7.3.10.0030.00916.58
7.3.00.0060.00916.84
7.2.330.0160.00016.69
7.2.320.0110.00816.53
7.2.310.0150.00616.58
7.2.300.0070.01016.58
7.2.290.0100.00616.60
7.2.250.0070.01415.05
7.2.240.0060.01015.03
7.2.230.0080.00815.23
7.2.220.0170.00015.00
7.2.210.0070.00715.21
7.2.200.0030.01014.91
7.2.190.0040.01115.15
7.2.180.0000.01014.81
7.2.170.0040.01114.94
7.2.60.0140.00016.96
7.2.00.0000.01519.47
7.1.330.0030.01315.95
7.1.320.0130.00016.04
7.1.310.0040.00815.73
7.1.300.0070.00715.73
7.1.290.0100.00615.68
7.1.280.0100.00315.86
7.1.270.0040.00715.85
7.1.260.0140.00015.91
7.1.200.0060.00315.81
7.1.100.0070.00718.02
7.1.70.0040.00417.46
7.1.60.0090.00317.45
7.1.50.0070.01016.80
7.1.00.0030.05022.57
7.0.200.0000.01716.84
7.0.140.0070.07021.95
7.0.60.0100.08020.02
7.0.50.0130.03717.98
7.0.40.0100.08720.21
7.0.30.0170.04320.08
7.0.20.0400.07720.12
7.0.10.0100.06020.28
7.0.00.0030.04320.12
5.6.280.0100.06721.05
5.6.210.0030.09020.82
5.6.200.0100.07318.34
5.6.190.0130.08320.61
5.6.180.0330.07020.79
5.6.170.0200.04320.74
5.6.160.0070.08720.69
5.6.150.0070.05718.38
5.6.140.0000.05018.34
5.6.130.0100.05718.37
5.6.120.0100.05321.27
5.6.110.0170.08021.13
5.6.100.0030.06321.25
5.6.90.0070.08321.21
5.6.80.0030.07020.50
5.6.70.4530.04020.52
5.5.350.0070.03320.61
5.5.340.0000.06318.13
5.5.330.0100.05020.62
5.5.320.0170.04320.46
5.5.310.0200.05020.45
5.5.300.0100.04318.15
5.5.290.0030.07018.27
5.5.280.0030.06720.95
5.5.270.0230.07020.77
5.5.260.0030.04020.95
5.5.250.0100.08320.80
5.5.240.0030.08320.29
5.4.450.0730.06719.65
5.4.440.0770.05719.47
5.4.430.1100.05319.50
5.4.420.1030.05019.87
5.4.410.0130.05019.52
5.4.400.1370.07718.68
5.4.390.1200.05318.91
5.4.380.0270.05718.94
5.4.370.0270.05318.91
5.4.360.0230.05018.68
5.4.350.0090.04112.17
5.4.340.0090.04512.17
5.4.320.0070.03912.66
5.4.310.0080.03712.65
5.4.300.0080.03812.66
5.4.290.0070.03912.65
5.4.280.0030.05212.54
5.4.270.0040.03712.54
5.4.260.0050.03712.54
5.4.250.0070.03812.54
5.3.290.0070.04012.92
4.3.00.0100.0277.38

preferences:
45.8 ms | 401 KiB | 5 Q