3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "text text text text [helloo] text [hello2] (hello3) text"; $pattern = '/\[([^\)]*)\]/'; preg_match_all($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.0100.00616.63
8.3.50.0150.00222.05
8.3.40.0120.00318.84
8.3.30.0040.01118.95
8.3.20.0000.00820.35
8.3.10.0000.00821.85
8.3.00.0060.00319.38
8.2.180.0090.00618.45
8.2.170.0070.00722.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00422.44
8.2.110.0180.00422.15
8.2.100.0110.00017.68
8.2.90.0040.00419.25
8.2.80.0080.00017.97
8.2.70.0080.00017.75
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00420.07
8.2.30.0040.00418.00
8.2.20.0050.00317.82
8.2.10.0040.00417.89
8.2.00.0090.00017.81
8.1.280.0120.00325.92
8.1.270.0080.00023.83
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00323.84
8.1.230.0120.00019.01
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.23
8.1.190.0000.00817.35
8.1.180.0040.00419.13
8.1.170.0050.00318.71
8.1.160.0020.00522.06
8.1.150.0030.00518.76
8.1.140.0000.00717.53
8.1.130.0070.00017.80
8.1.120.0000.00717.62
8.1.110.0030.00617.57
8.1.100.0000.00717.52
8.1.90.0050.00317.52
8.1.80.0060.00317.52
8.1.70.0000.00717.48
8.1.60.0040.00717.70
8.1.50.0050.00317.48
8.1.40.0080.00017.56
8.1.30.0040.00417.66
8.1.20.0040.00417.69
8.1.10.0000.00717.62
8.1.00.0050.00317.65
8.0.300.0040.00420.65
8.0.290.0040.00416.93
8.0.280.0000.00718.27
8.0.270.0030.00317.25
8.0.260.0030.00317.17
8.0.250.0000.00716.98
8.0.240.0070.00017.03
8.0.230.0000.00716.91
8.0.220.0030.00516.95
8.0.210.0070.00016.98
8.0.200.0030.00316.99
8.0.190.0040.00416.92
8.0.180.0000.00716.88
8.0.170.0040.00417.00
8.0.160.0000.00716.98
8.0.150.0000.00816.82
8.0.140.0030.00316.98
8.0.130.0030.00313.39
8.0.120.0040.00416.98
8.0.110.0000.00716.85
8.0.100.0040.00416.93
8.0.90.0030.00416.93
8.0.80.0150.00617.00
8.0.70.0070.00016.84
8.0.60.0000.00816.85
8.0.50.0000.00816.92
8.0.30.0100.00817.12
8.0.20.0070.01217.40
8.0.10.0040.00417.15
8.0.00.0060.01317.02
7.4.330.0050.00015.00
7.4.320.0030.00316.59
7.4.300.0060.00016.80
7.4.290.0030.00616.65
7.4.280.0050.00516.71
7.4.270.0070.00016.73
7.4.260.0040.00416.72
7.4.250.0040.00416.71
7.4.240.0020.00616.78
7.4.230.0030.00316.64
7.4.220.0130.01316.61
7.4.210.0070.01016.77
7.4.200.0030.00316.50
7.4.190.0030.00316.71
7.4.160.0130.00316.82
7.4.150.0120.00617.40
7.4.140.0060.01517.86
7.4.130.0150.00616.72
7.4.120.0110.00616.58
7.4.110.0140.00316.64
7.4.100.0110.01116.54
7.4.90.0150.00916.53
7.4.80.0130.01019.39
7.4.70.0040.01216.81
7.4.60.0100.00616.43
7.4.50.0060.00316.36
7.4.40.0060.01716.66
7.4.30.0090.00716.65
7.4.00.0080.00915.14
7.3.330.0000.00713.13
7.3.320.0030.00313.19
7.3.310.0060.00316.28
7.3.300.0060.00016.34
7.3.290.0090.00616.24
7.3.280.0070.01116.29
7.3.270.0160.00017.40
7.3.260.0130.01016.37
7.3.250.0120.00716.49
7.3.240.0100.01316.36
7.3.230.0000.01716.43
7.3.210.0090.00916.69
7.3.200.0060.01419.39
7.3.190.0130.00316.56
7.3.180.0030.01216.29
7.3.170.0130.00316.27
7.3.160.0110.00516.29
7.3.120.0050.01214.75
7.3.110.0120.00314.63
7.3.100.0100.00614.61
7.3.90.0090.00315.07
7.3.80.0150.00314.99
7.3.70.0110.00414.80
7.3.60.0060.00614.84
7.3.50.0070.00714.88
7.3.40.0080.00814.93
7.3.30.0140.00014.87
7.3.20.0070.01016.64
7.3.10.0090.00416.53
7.3.00.0020.01316.65
7.2.330.0210.02416.58
7.2.320.0070.01016.57
7.2.310.0130.00616.56
7.2.300.0070.01316.73
7.2.290.0140.00716.43
7.2.250.0120.00914.87
7.2.240.0100.00714.89
7.2.230.0140.00314.79
7.2.220.0140.00015.11
7.2.210.0030.01014.81
7.2.200.0000.01315.05
7.2.190.0070.01015.18
7.2.180.0030.00714.82
7.2.170.0070.01015.06
7.2.130.0060.00616.91
7.2.120.0060.00616.85
7.2.110.0030.01016.88
7.2.100.0030.01016.71
7.2.90.0070.00316.65
7.2.80.0000.01317.00
7.2.70.0070.00716.73
7.2.60.0030.00916.84
7.2.50.0040.01116.79
7.2.40.0030.00616.70
7.2.30.0060.00616.69
7.2.20.0060.01016.79
7.2.10.0050.00516.79
7.2.00.0070.00618.32
7.1.330.0030.01016.02
7.1.320.0040.00715.64
7.1.310.0070.01015.81
7.1.300.0060.00315.75
7.1.290.0030.00915.98
7.1.280.0060.00915.77
7.1.270.0000.01115.98
7.1.260.0080.00316.00
7.1.250.0040.01216.04
7.1.200.0070.00715.86
7.1.100.0040.00818.33
7.1.70.0030.00917.29
7.1.60.0130.00919.46
7.1.50.0230.01334.91
7.1.00.0000.08022.53
7.0.200.0250.00414.74
7.0.140.0170.06021.92
7.0.60.0170.07321.66
7.0.50.0100.07717.74
7.0.40.0100.03720.29
7.0.30.0400.06320.18
7.0.20.0230.05320.26
7.0.10.0070.05720.16
7.0.00.0030.09020.11
5.6.280.0070.06721.07
5.6.210.0030.04020.47
5.6.200.0070.06718.26
5.6.190.0030.08720.77
5.6.180.0370.08020.49
5.6.170.0330.06720.56
5.6.160.0030.06020.43
5.6.150.0070.05718.18
5.6.140.0100.07318.28
5.6.130.0100.06718.27
5.6.120.0100.08021.01
5.6.110.0130.07720.98
5.6.100.0100.07721.10
5.6.90.0100.03721.01
5.6.80.0130.03320.39
5.5.350.4000.04720.42
5.5.340.0070.08017.95
5.5.330.0100.03720.21
5.5.320.0330.06020.21
5.5.310.0230.06020.34
5.5.300.0030.04017.98
5.5.290.0200.06317.98
5.5.280.0130.08020.95
5.5.270.0170.07720.93
5.5.260.0070.05020.87
5.5.250.0100.07720.68
5.5.240.0170.03720.36
5.4.450.1000.05719.62
5.4.440.0770.06019.30
5.4.430.0270.05019.54
5.4.420.0730.04719.37
5.4.410.0800.03719.34
5.4.400.0770.04719.05
5.4.390.0730.04319.22
5.4.380.0370.05718.79
5.4.370.0470.07718.61
5.4.360.0200.06718.54
5.4.350.0500.06718.75
5.4.340.0330.05318.76
5.4.320.0050.03812.48
5.4.310.0060.03812.48
5.4.300.0090.03812.48
5.4.290.0140.07412.47
5.4.280.0080.06212.37
5.4.270.0150.05312.37
5.4.260.0130.05312.37
5.4.250.0160.05112.37
5.4.240.0110.05412.37
5.4.230.0140.05212.36
5.4.220.0090.04812.36
5.4.210.0080.04712.36
5.4.200.0100.05112.36
5.4.190.0080.03912.36
5.4.180.0030.04112.36
5.4.170.0100.04012.37
5.4.160.0090.04512.37
5.4.150.0100.04912.36
5.4.140.0060.05512.04
5.4.130.0090.04612.04
5.4.120.0050.05511.99
5.4.110.0100.04711.98
5.4.100.0070.05111.99
5.4.90.0080.05011.99
5.4.80.0100.04611.99
5.4.70.0100.04511.98
5.4.60.0050.04411.98
5.4.50.0090.03611.98
5.4.40.0070.03911.98
5.4.30.0080.05111.97
5.4.20.0100.05011.97
5.4.10.0060.05511.97
5.4.00.0130.05311.46
5.3.290.0070.05312.80
5.3.280.0100.04812.71
5.3.270.0080.05312.73
5.3.260.0090.05412.72
5.3.250.0100.05112.72
5.3.240.0120.04912.72
5.3.230.0090.05212.70
5.3.220.0100.05212.68
5.3.210.0100.05312.68
5.3.200.0110.05012.68
5.3.190.0110.05112.68
5.3.180.0050.05912.67
5.3.170.0090.05312.67
5.3.160.0170.04712.67
5.3.150.0100.05312.68
5.3.140.0080.05412.66
5.3.130.0100.05512.66
5.3.120.0090.05612.66
5.3.110.0150.06912.66
5.3.100.0090.05512.12
5.3.90.0070.05512.10
5.3.80.0110.05212.09
5.3.70.0080.04812.09
5.3.60.0100.05012.08
5.3.50.0100.04112.02
5.3.40.0080.04612.02
5.3.30.0060.04111.98
5.3.20.0110.04611.76
5.3.10.0090.05011.73
5.3.00.0050.05311.71
5.2.170.0080.0369.22
5.2.160.0060.0349.22
5.2.150.0130.0429.22
5.2.140.0070.0449.21
5.2.130.0100.0369.18
5.2.120.0050.0409.17
5.2.110.0050.0399.18
5.2.100.0080.0309.18
5.2.90.0040.0349.18
5.2.80.0050.0339.17
5.2.70.0070.0449.17
5.2.60.0050.0459.13
5.2.50.0060.0389.09
5.2.40.0090.0349.07
5.2.30.0190.0439.06
5.2.20.0080.0539.04
5.2.10.0060.0508.93
5.2.00.0050.0408.79
5.1.60.0070.0228.06
5.1.50.0070.0228.06
5.1.40.0090.0228.04
5.1.30.0050.0308.39
5.1.20.0070.0428.41
5.1.10.0090.0308.13
5.1.00.0080.0338.13
5.0.50.0040.0286.61
5.0.40.0050.0266.47
5.0.30.0040.0326.29
5.0.20.0050.0196.26
5.0.10.0030.0246.23
5.0.00.0020.0336.22
4.4.90.0040.0204.78
4.4.80.0060.0124.75
4.4.70.0010.0184.76
4.4.60.0010.0184.76
4.4.50.0020.0174.77
4.4.40.0040.0254.70
4.4.30.0040.0154.76
4.4.20.0000.0194.85
4.4.10.0030.0164.85
4.4.00.0030.0324.76
4.3.110.0050.0154.67
4.3.100.0040.0174.66
4.3.90.0020.0164.63
4.3.80.0040.0254.58
4.3.70.0040.0164.63
4.3.60.0030.0164.63
4.3.50.0050.0164.62
4.3.40.0040.0234.54
4.3.30.0050.0133.28
4.3.20.0020.0163.26
4.3.10.0000.0173.21
4.3.00.0170.02310.55

preferences:
68.14 ms | 401 KiB | 5 Q