3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'comment=Accept established chain=forward connection-state=established'; preg_match_all('/([a-z-]+)=(.*?)(?=\s*[a-z-]+=|$)/', $str, $matches); print_r($matches);

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.4.130.0150.00517.91
8.4.120.0020.00620.84
8.4.110.0130.00722.57
8.4.100.0150.00617.83
8.4.90.0130.00620.64
8.4.80.0140.00620.73
8.4.70.0110.00818.82
8.4.60.0050.01120.45
8.4.50.0090.01022.39
8.4.40.0070.01519.74
8.4.30.0100.01018.56
8.4.20.0120.00620.04
8.4.10.0130.00619.43
8.3.260.0140.00616.61
8.3.250.0120.00718.82
8.3.240.0100.00916.71
8.3.230.0100.01016.69
8.3.220.0050.00918.84
8.3.210.0070.00516.49
8.3.200.0040.00416.63
8.3.190.0040.00317.05
8.3.180.0110.00919.11
8.3.170.0130.00616.92
8.3.160.0000.00916.47
8.3.150.0100.01017.08
8.3.140.0040.00416.48
8.3.130.0060.00316.72
8.3.120.0080.00818.82
8.3.110.0040.00416.60
8.3.100.0030.00624.06
8.3.90.0090.00026.77
8.3.80.0060.00319.36
8.3.70.0150.00316.59
8.3.60.0070.01316.63
8.3.50.0090.00924.60
8.3.40.0100.01318.99
8.3.30.0110.00418.88
8.3.20.0000.00824.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0120.00617.00
8.2.280.0120.01118.81
8.2.270.0040.01116.62
8.2.260.0110.00716.93
8.2.250.0060.00318.47
8.2.240.0120.00318.98
8.2.230.0060.00320.94
8.2.220.0030.00637.54
8.2.210.0000.00826.77
8.2.200.0060.00318.88
8.2.190.0140.00016.63
8.2.180.0150.00025.92
8.2.170.0120.00318.88
8.2.160.0070.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.89
8.2.110.0040.00422.38
8.2.100.0110.00017.84
8.2.90.0080.00017.88
8.2.80.0130.00018.77
8.2.70.0000.00817.88
8.2.60.0060.00318.03
8.2.50.0050.00318.10
8.2.40.0030.00621.25
8.2.30.0040.00419.13
8.2.20.0000.00717.96
8.2.10.0000.00719.19
8.2.00.0000.00719.27
8.1.330.0050.00323.56
8.1.320.0110.01016.16
8.1.310.0140.00316.69
8.1.300.0030.00618.16
8.1.290.0000.01130.84
8.1.280.0100.00325.92
8.1.270.0040.00723.99
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0060.00323.96
8.1.230.0090.00317.82
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.25
8.1.190.0000.00917.22
8.1.180.0080.00018.10
8.1.170.0040.00420.37
8.1.160.0040.00418.93
8.1.150.0040.00418.89
8.1.140.0070.00018.79
8.1.130.0070.00020.14
8.1.120.0000.00717.53
8.1.110.0040.00417.55
8.1.100.0000.00917.56
8.1.90.0000.00817.56
8.1.80.0040.00417.50
8.1.70.0030.00517.42
8.1.60.0080.00017.64
8.1.50.0060.00317.47
8.1.40.0040.00417.62
8.1.30.0040.00417.71
8.1.20.0030.00617.70
8.1.10.0030.00517.63
8.1.00.0000.00817.59
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0000.00718.43
8.0.270.0070.00016.90
8.0.260.0060.00018.44
8.0.250.0030.00416.95
8.0.240.0000.00817.05
8.0.230.0040.00417.05
8.0.220.0000.00816.96
8.0.210.0040.00416.94
8.0.200.0000.00717.05
8.0.190.0030.00516.93
8.0.180.0040.00417.00
8.0.170.0030.00616.92
8.0.160.0040.00416.97
8.0.150.0000.00716.86
8.0.140.0060.00316.92
8.0.130.0060.00013.40
8.0.120.0020.00516.94
8.0.110.0000.00716.88
8.0.100.0030.00316.82
8.0.90.0040.00416.91
8.0.80.0100.00516.97
8.0.70.0040.00416.98
8.0.60.0080.00016.99
8.0.50.0000.00716.85
8.0.30.0120.00916.87
8.0.20.0030.01616.92
8.0.10.0000.00817.05
8.0.00.0060.01316.83
7.4.330.0050.00015.55
7.4.320.0060.00016.58
7.4.300.0000.00616.64
7.4.290.0080.00016.63
7.4.280.0080.00316.56
7.4.270.0030.00316.70
7.4.260.0060.00013.37
7.4.250.0000.00716.64
7.4.240.0050.00216.68
7.4.230.0050.00316.85
7.4.220.0020.00516.68
7.4.210.0080.00716.74
7.4.200.0030.00316.56
7.4.130.0060.01316.60
7.4.120.0100.00716.34
7.4.110.0060.01216.58
7.4.100.0000.01716.57
7.4.90.0100.00716.46
7.4.80.0060.01219.39
7.4.70.0090.00616.54
7.4.60.0110.00516.57
7.4.50.0100.00716.67
7.4.40.0090.00616.46
7.4.30.0080.00916.50
7.4.20.0120.00416.60
7.4.10.0060.00916.46
7.4.00.0080.00816.63
7.3.330.0070.00016.39
7.3.320.0030.00313.16
7.3.310.0000.00816.26
7.3.300.0030.00316.26
7.3.290.0060.01216.27
7.3.280.0080.00816.29
7.3.260.0180.00016.68
7.3.230.0110.01116.57
7.3.210.0070.01116.68
7.3.200.0060.01016.67
7.3.190.0030.01216.54
7.3.180.0100.00716.36
7.3.170.0110.00716.68
7.3.160.0120.00316.37
7.3.150.0050.01116.52
7.3.140.0060.00816.56
7.3.130.0110.00516.38
7.3.120.0130.00416.27
7.3.110.0060.01016.19
7.3.100.0030.01416.43
7.3.90.0100.00716.41
7.3.80.0120.00916.33
7.3.70.0060.01016.46
7.3.60.0130.00316.42
7.3.50.0050.01416.40
7.3.40.0080.00716.24
7.3.30.0060.00916.33
7.3.20.0070.01016.29
7.3.10.0060.01216.37
7.3.00.0040.01316.55
7.2.330.0090.00916.61
7.2.320.0030.01516.69
7.2.310.0030.01316.63
7.2.300.0060.01116.61
7.2.290.0080.00816.63
7.2.280.0070.01016.43
7.2.270.0160.00016.69
7.2.260.0080.00816.47
7.2.250.0070.01016.62
7.2.240.0090.01016.57
7.2.230.0060.01116.52
7.2.220.0140.00616.30
7.2.210.0140.00716.51
7.2.200.0090.00916.55
7.2.190.0130.00516.64
7.2.180.0090.00916.50
7.2.170.0030.01316.50
7.2.160.0100.00716.56
7.2.150.0060.01016.72
7.2.140.0070.01016.55
7.2.130.0070.01116.48
7.2.120.0090.00916.59
7.2.110.0140.00816.66
7.2.100.0250.01616.52
7.2.90.0130.01016.70
7.2.80.0030.01416.48
7.2.70.0090.00916.57
7.2.60.0120.00616.71
7.2.50.0130.00316.63
7.2.40.0070.01016.65
7.2.30.0160.00016.61
7.2.20.0080.01116.70
7.2.10.0080.00816.64
7.2.00.0120.00616.72

preferences:
127.44 ms | 403 KiB | 5 Q