3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "text text text text [helloo] text [hello2] (hello3) text"; $pattern = '/\[(.+?)\]/is'; preg_match($pattern, $subject, $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.3.60.0070.00716.62
8.3.50.0090.01122.12
8.3.40.0000.01418.83
8.3.30.0080.00819.15
8.3.20.0050.00320.34
8.3.10.0040.00421.80
8.3.00.0060.00319.38
8.2.180.0040.01116.34
8.2.170.0120.00322.96
8.2.160.0070.00720.39
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00022.38
8.2.110.0090.00022.20
8.2.100.0070.00317.72
8.2.90.0000.00719.08
8.2.80.0050.00317.97
8.2.70.0030.00617.71
8.2.60.0030.00519.66
8.2.50.0030.00618.07
8.2.40.0030.00619.89
8.2.30.0080.00019.73
8.2.20.0040.00417.67
8.2.10.0000.00819.82
8.2.00.0030.00617.77
8.1.280.0200.00325.92
8.1.270.0080.00023.96
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.98
8.1.230.0040.00819.09
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0090.00017.25
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.64
8.1.160.0070.00022.02
8.1.150.0060.00318.70
8.1.140.0030.00717.45
8.1.130.0070.00017.94
8.1.120.0030.00517.59
8.1.110.0050.00317.50
8.1.100.0000.00817.52
8.1.90.0060.00317.53
8.1.80.0000.00817.46
8.1.70.0070.00017.46
8.1.60.0000.01117.61
8.1.50.0040.00417.62
8.1.40.0040.00417.52
8.1.30.0090.00017.69
8.1.20.0000.00717.73
8.1.10.0050.00317.64
8.1.00.0040.00417.66
8.0.300.0040.00420.54
8.0.290.0050.00217.05
8.0.280.0000.00718.39
8.0.270.0030.00317.25
8.0.260.0080.00017.08
8.0.250.0030.00317.04
8.0.240.0000.00717.02
8.0.230.0040.00417.00
8.0.220.0070.00017.05
8.0.210.0040.00416.91
8.0.200.0000.00717.05
8.0.190.0030.00516.96
8.0.180.0000.00717.04
8.0.170.0040.00416.94
8.0.160.0000.00816.93
8.0.150.0030.00516.80
8.0.140.0040.00416.94
8.0.130.0050.00013.42
8.0.120.0000.00816.83
8.0.110.0000.00716.99
8.0.100.0000.00716.92
8.0.90.0040.00417.00
8.0.80.0090.00616.89
8.0.70.0030.00316.86
8.0.60.0000.00816.87
8.0.50.0000.00816.99
8.0.30.0130.00617.19
8.0.20.0120.01017.40
8.0.10.0040.00417.03
8.0.00.0100.00816.75
7.4.330.0000.00515.00
7.4.320.0000.00616.75
7.4.300.0030.00316.67
7.4.290.0040.00416.63
7.4.280.0060.00316.73
7.4.270.0040.00416.70
7.4.260.0000.00816.63
7.4.250.0000.00716.73
7.4.240.0020.00516.67
7.4.230.0030.00516.69
7.4.220.0130.01316.72
7.4.210.0090.00816.70
7.4.200.0030.00316.77
7.4.190.0030.00516.91
7.4.160.0060.01016.70
7.4.150.0110.00617.40
7.4.140.0090.01017.86
7.4.130.0090.00916.73
7.4.120.0070.01216.73
7.4.110.0090.01216.43
7.4.100.0110.00916.46
7.4.90.0090.00916.76
7.4.80.0080.01219.39
7.4.70.0130.00316.46
7.4.60.0060.01316.63
7.4.50.0040.00416.58
7.4.40.0030.01616.47
7.4.30.0050.01116.54
7.4.00.0040.01415.03
7.3.330.0050.00013.21
7.3.320.0000.00513.14
7.3.310.0000.00716.38
7.3.300.0000.00716.33
7.3.290.0090.00616.27
7.3.280.0090.01016.26
7.3.270.0100.00717.40
7.3.260.0100.00716.32
7.3.250.0100.00816.52
7.3.240.0130.00316.39
7.3.230.0100.00716.44
7.3.210.0120.00616.55
7.3.200.0090.01219.39
7.3.190.0160.00316.61
7.3.180.0090.00616.55
7.3.170.0080.00816.60
7.3.160.0130.00316.48
7.3.120.0080.00414.61
7.2.330.0220.02016.55
7.2.320.0100.00716.63
7.2.310.0140.01116.69
7.2.300.0090.00916.59
7.2.290.0160.00616.59
7.2.00.0000.01319.68
7.1.100.0060.00618.48
7.1.70.0000.00717.00
7.1.60.0060.01919.46
7.1.50.0100.01435.02
7.1.00.0070.07022.30
7.0.200.0240.00614.85
7.0.140.0030.07322.09
7.0.60.0070.08020.02
7.0.50.0070.05017.88
7.0.40.0000.04720.07
7.0.30.0200.05320.18
7.0.20.0230.07720.18
7.0.10.0070.05720.11
7.0.00.0070.09020.29
5.6.280.0000.07721.04
5.6.210.0270.05720.69
5.6.200.0100.08018.15
5.6.190.0070.05720.55
5.6.180.0230.05320.47
5.6.170.0270.07720.57
5.6.160.0170.05020.61
5.6.150.0070.07718.16
5.6.140.0030.08018.14
5.6.130.0070.04718.21
5.6.120.0170.07321.00
5.6.110.0000.04320.89
5.6.100.0070.04020.98
5.6.90.0170.07021.09
5.6.80.0170.06720.50
5.5.350.4070.03720.39
5.5.340.0030.08017.98
5.5.330.0000.04720.40
5.5.320.0230.05320.26
5.5.310.0200.07320.16
5.5.300.0070.05717.97
5.5.290.0130.03717.94
5.5.280.0100.08020.87
5.5.270.0030.04720.82
5.5.260.0170.08720.64
5.5.250.0070.03720.68
5.5.240.0000.08020.15
5.4.450.0630.06019.57
5.4.440.0800.07719.46
5.4.430.0300.06319.52
5.4.420.0730.05719.56
5.4.410.0630.05319.05
5.4.400.0100.05319.06
5.4.390.0530.06318.86
5.4.380.0200.06718.58
5.4.370.0170.06018.55
5.4.360.0330.05018.74
5.4.350.0330.05318.74
5.4.340.0370.05018.78
5.4.320.0070.03712.48
5.4.310.0080.04712.47
5.4.300.0060.03812.48
5.4.290.0110.04512.47
5.4.280.0040.05012.37
5.4.270.0210.07612.37
5.4.260.0100.07112.37
5.4.250.0080.07912.37
5.4.240.0170.09812.37
5.4.230.0120.10212.36
5.4.220.0100.05612.36
5.4.210.0160.07312.36
5.4.200.0120.05112.36
5.4.190.0060.05212.36
5.4.180.0100.05012.36
5.4.170.0080.05312.37
5.4.160.0090.05112.36
5.4.150.0090.05012.36
5.4.140.0070.05212.04
5.4.130.0100.04512.03
5.4.120.0100.03611.99
5.4.110.0110.06411.99
5.4.100.0080.03611.98
5.4.90.0040.04111.98
5.4.80.0070.03911.99
5.4.70.0070.03611.98
5.4.60.0030.04011.98
5.4.50.0070.03511.98
5.4.40.0060.03511.97
5.4.30.0060.03911.97
5.4.20.0050.03811.97
5.4.10.0120.03211.97
5.4.00.0040.04311.46
5.3.290.0040.04112.80
5.3.280.0100.03612.71
5.3.270.0090.04012.73
5.3.260.0050.04312.72
5.3.250.0080.04112.71
5.3.240.0060.03812.72
5.3.230.0100.03712.71
5.3.220.0070.05812.68
5.3.210.0070.04312.68
5.3.200.0090.04812.68
5.3.190.0100.05512.67
5.3.180.0120.05012.68
5.3.170.0120.04912.67
5.3.160.0190.07712.68
5.3.150.0090.05212.67
5.3.140.0160.07212.66
5.3.130.0170.07312.66
5.3.120.0130.07012.66
5.3.110.0150.09912.66
5.3.100.0250.11212.13
5.3.90.0120.05612.10
5.3.80.0110.05612.09
5.3.70.0210.09212.09
5.3.60.0070.04312.07
5.3.50.0110.04812.02
5.3.40.0070.05012.02
5.3.30.0080.05011.98
5.3.20.0080.04911.76
5.3.10.0060.04211.73
5.3.00.0070.04911.71
5.2.170.0080.0689.21
5.2.160.0130.0609.21
5.2.150.0260.0719.22
5.2.140.0130.0769.21
5.2.130.0070.0439.17
5.2.120.0080.0509.17
5.2.110.0100.0719.18
5.2.100.0050.0439.18
5.2.90.0040.0479.18
5.2.80.0140.0439.17
5.2.70.0090.0429.17
5.2.60.0140.0779.13
5.2.50.0280.0889.09
5.2.40.0110.0449.07
5.2.30.0060.0509.05
5.2.20.0070.0499.04
5.2.10.0110.0488.93
5.2.00.0120.0548.79
5.1.60.0060.0548.06
5.1.50.0080.0388.06
5.1.40.0090.0688.04
5.1.30.0090.0718.39
5.1.20.0100.0438.41
5.1.10.0070.0348.13
5.1.00.0080.0558.14
5.0.50.0090.0476.61
5.0.40.0100.0586.47
5.0.30.0120.0536.29
5.0.20.0110.0476.25
5.0.10.0080.0496.23
5.0.00.0070.0466.23
4.4.90.0040.0224.78
4.4.80.0040.0224.76
4.4.70.0100.0354.76
4.4.60.0050.0494.75
4.4.50.0180.0534.77
4.4.40.0050.0394.71
4.4.30.0030.0224.76
4.4.20.0040.0224.84
4.4.10.0060.0284.85
4.4.00.0070.0534.76
4.3.110.0130.0474.67
4.3.100.0060.0474.67
4.3.90.0070.0254.63
4.3.80.0080.0534.59
4.3.70.0130.0304.63
4.3.60.0040.0214.63
4.3.50.0040.0214.63
4.3.40.0040.0314.54
4.3.30.0040.0233.28
4.3.20.0020.0223.26
4.3.10.0020.0223.22
4.3.00.0100.01710.55

preferences:
41.07 ms | 400 KiB | 5 Q