3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "text text text text [helloo] text [hello2] (hello3) text"; $pattern = '/\(([^\)]*)\)/'; 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.88
8.3.50.0070.00922.01
8.3.40.0090.00618.88
8.3.30.0110.00418.95
8.3.20.0040.00420.27
8.3.10.0050.00323.65
8.3.00.0050.00319.25
8.2.180.0120.00918.54
8.2.170.0060.00922.96
8.2.160.0080.00620.49
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0070.00022.24
8.2.110.0060.00319.20
8.2.100.0070.00417.91
8.2.90.0080.00019.08
8.2.80.0060.00317.97
8.2.70.0030.00617.75
8.2.60.0030.00517.93
8.2.50.0080.00018.07
8.2.40.0000.00820.07
8.2.30.0030.00718.08
8.2.20.0040.00417.77
8.2.10.0000.00718.12
8.2.00.0100.00017.64
8.1.280.0070.00725.92
8.1.270.0040.00423.91
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00621.09
8.1.230.0110.00019.00
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0090.00017.35
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0040.00421.95
8.1.150.0000.00718.68
8.1.140.0000.00717.53
8.1.130.0080.00017.84
8.1.120.0000.00717.57
8.1.110.0050.00317.55
8.1.100.0040.00417.50
8.1.90.0030.00517.50
8.1.80.0040.00417.45
8.1.70.0070.00017.55
8.1.60.0090.00017.66
8.1.50.0070.00017.58
8.1.40.0040.00417.55
8.1.30.0000.00817.68
8.1.20.0030.00517.77
8.1.10.0000.00817.68
8.1.00.0020.00517.43
8.0.300.0070.00018.77
8.0.290.0000.00717.04
8.0.280.0070.00018.31
8.0.270.0000.00717.21
8.0.260.0060.00017.22
8.0.250.0000.00716.93
8.0.240.0070.00017.02
8.0.230.0070.00017.07
8.0.220.0000.00716.87
8.0.210.0030.00517.01
8.0.200.0030.00316.91
8.0.190.0040.00416.92
8.0.180.0030.00516.95
8.0.170.0040.00416.90
8.0.160.0000.00716.96
8.0.150.0040.00416.97
8.0.140.0000.00816.84
8.0.130.0030.00313.36
8.0.120.0000.00816.93
8.0.110.0000.00717.00
8.0.100.0040.00416.74
8.0.90.0020.00516.94
8.0.80.0110.00416.89
8.0.70.0040.00417.04
8.0.60.0030.00517.04
8.0.50.0070.00016.93
8.0.30.0060.01217.20
8.0.20.0150.00717.40
8.0.10.0030.00316.96
8.0.00.0050.01216.79
7.4.330.0060.00015.00
7.4.320.0070.00016.77
7.4.300.0060.00016.72
7.4.290.0030.00316.66
7.4.280.0030.00716.69
7.4.270.0000.00716.60
7.4.260.0060.00316.62
7.4.250.0040.00416.64
7.4.240.0020.00516.66
7.4.230.0040.00416.84
7.4.220.0110.01216.77
7.4.210.0080.00716.63
7.4.200.0000.00716.74
7.4.190.0030.00316.71
7.4.160.0100.00716.68
7.4.150.0060.01317.40
7.4.140.0170.00217.86
7.4.130.0160.00016.61
7.4.120.0070.01416.63
7.4.110.0130.00316.70
7.4.100.0030.01916.54
7.4.90.0140.00316.58
7.4.80.0120.00619.39
7.4.70.0030.01316.61
7.4.60.0060.01016.54
7.4.50.0040.00416.64
7.4.40.0100.00716.46
7.4.30.0060.01016.64
7.4.00.0090.00515.00
7.3.330.0050.00013.19
7.3.320.0000.00613.21
7.3.310.0000.00716.10
7.3.300.0030.00316.33
7.3.290.0090.00616.25
7.3.280.0070.01316.30
7.3.270.0130.00317.40
7.3.260.0130.01016.57
7.3.250.0110.01316.46
7.3.240.0100.00616.72
7.3.230.0100.01016.50
7.3.210.0050.01116.48
7.3.200.0140.00719.39
7.3.190.0160.00616.26
7.3.180.0060.00916.20
7.3.170.0030.01316.27
7.3.160.0070.01016.67
7.3.120.0070.00915.11
7.3.110.0100.00715.08
7.3.100.0040.01214.88
7.3.90.0000.01314.70
7.3.80.0090.00615.21
7.3.70.0040.00814.88
7.3.60.0160.00014.86
7.3.50.0090.00614.93
7.3.40.0060.00614.46
7.3.30.0000.00814.86
7.3.20.0070.00716.68
7.3.10.0100.00716.71
7.3.00.0070.00716.77
7.2.330.0120.00816.56
7.2.320.0070.01016.55
7.2.310.0060.01316.61
7.2.300.0130.00316.48
7.2.290.0180.00316.62
7.2.250.0080.00815.00
7.2.240.0040.01514.77
7.2.230.0110.00815.20
7.2.220.0060.00614.83
7.2.210.0060.00915.13
7.2.200.0070.00714.84
7.2.190.0100.00314.93
7.2.180.0070.00715.12
7.2.170.0060.01215.06
7.2.00.0040.01119.38
7.1.330.0060.00915.81
7.1.320.0080.00016.00
7.1.310.0080.00815.78
7.1.300.0110.00316.05
7.1.290.0040.01115.76
7.1.280.0000.01015.90
7.1.270.0070.00715.89
7.1.260.0040.01215.87
7.1.100.0030.01018.34
7.1.70.0060.00317.11
7.1.60.0040.01519.46
7.1.50.0200.02035.09
7.1.00.0070.07022.32
7.0.200.0240.00615.04
7.0.140.0030.07322.00
7.0.60.0130.08319.87
7.0.50.0130.08317.88
7.0.40.0100.04019.98
7.0.30.0200.08720.35
7.0.20.0300.08020.19
7.0.10.0130.08020.14
7.0.00.0070.08320.09
5.6.280.0100.06021.11
5.6.210.0170.07320.75
5.6.200.0100.07018.19
5.6.190.0070.05720.48
5.6.180.0300.07720.47
5.6.170.0400.08020.51
5.6.160.0170.07720.43
5.6.150.0030.05018.25
5.6.140.0000.04318.18
5.6.130.0170.07018.11
5.6.120.0030.04021.03
5.6.110.0030.08021.00
5.6.100.0100.05321.13
5.6.90.0030.06721.02
5.6.80.0070.08020.43
5.5.350.4230.04320.38
5.5.340.0100.03318.03
5.5.330.0000.05020.31
5.5.320.0270.07020.34
5.5.310.0300.07720.24
5.5.300.0070.05317.98
5.5.290.0100.06718.08
5.5.280.0130.07020.64
5.5.270.0070.07020.86
5.5.260.0070.08720.79
5.5.250.0130.08020.68
5.5.240.0030.06020.15
5.4.450.0630.06319.60
5.4.440.0630.06319.60
5.4.430.0130.05319.44
5.4.420.1070.05719.16
5.4.410.0730.05719.44
5.4.400.0200.04319.28
5.4.390.0600.05719.16
5.4.380.0430.04718.46
5.4.370.0330.05018.62
5.4.360.0400.05718.80
5.4.350.0330.05718.84
5.4.340.0370.04318.75
5.4.320.0050.04012.48
5.4.310.0080.03512.47
5.4.300.0040.04012.48
5.4.290.0080.04412.47
5.4.280.0070.03612.37
5.4.270.0080.04312.37
5.4.260.0060.04212.37
5.4.250.0070.05912.37
5.4.240.0080.04812.37
5.4.230.0080.04912.36
5.4.220.0070.05612.36
5.4.210.0060.03612.36
5.4.200.0050.03812.36
5.4.190.0010.04112.36
5.4.180.0070.03612.36
5.4.170.0050.03712.37
5.4.160.0060.03612.36
5.4.150.0090.03412.36
5.4.140.0060.03712.04
5.4.130.0100.03212.03
5.4.120.0060.04111.99
5.4.110.0060.03811.99
5.4.100.0050.03611.99
5.4.90.0030.03911.99
5.4.80.0050.03711.99
5.4.70.0080.03411.98
5.4.60.0070.03411.98
5.4.50.0070.03411.98
5.4.40.0040.03711.97
5.4.30.0030.04711.96
5.4.20.0080.05911.97
5.4.10.0140.07211.97
5.4.00.0070.06711.46
5.3.290.0050.04012.80
5.3.280.0050.04812.71
5.3.270.0100.03812.72
5.3.260.0110.04912.72
5.3.250.0080.03712.72
5.3.240.0060.03712.72
5.3.230.0070.04312.71
5.3.220.0090.06212.68
5.3.210.0160.10112.68
5.3.200.0050.05812.68
5.3.190.0170.09512.68
5.3.180.0110.08112.68
5.3.170.0080.04012.67
5.3.160.0130.07612.67
5.3.150.0080.06712.68
5.3.140.0140.04512.66
5.3.130.0100.05812.66
5.3.120.0090.05412.66
5.3.110.0050.05812.66
5.3.100.0060.05512.11
5.3.90.0080.05412.10
5.3.80.0140.07512.09
5.3.70.0100.04812.09
5.3.60.0070.05012.07
5.3.50.0090.09612.02
5.3.40.0100.07012.02
5.3.30.0080.05011.98
5.3.20.0080.04811.76
5.3.10.0070.05111.73
5.3.00.0050.05311.71
5.2.170.0040.0469.22
5.2.160.0070.0379.22
5.2.150.0130.0949.22
5.2.140.0100.0589.21
5.2.130.0120.0409.18
5.2.120.0040.0469.18
5.2.110.0070.0409.18
5.2.100.0170.0729.18
5.2.90.0030.0329.18
5.2.80.0070.0369.17
5.2.70.0090.0439.18
5.2.60.0060.0449.13
5.2.50.0050.0439.09
5.2.40.0040.0419.07
5.2.30.0080.0389.05
5.2.20.0080.0389.04
5.2.10.0060.0398.93
5.2.00.0050.0428.79
5.1.60.0060.0348.06
5.1.50.0040.0328.05
5.1.40.0050.0358.04
5.1.30.0080.0248.39
5.1.20.0080.0468.41
5.1.10.0060.0358.13
5.1.00.0080.0348.13
5.0.50.0070.0246.62
5.0.40.0040.0206.47
5.0.30.0010.0456.29
5.0.20.0060.0256.25
5.0.10.0040.0286.23
5.0.00.0030.0416.22
4.4.90.0040.0224.78
4.4.80.0070.0194.75
4.4.70.0130.0714.75
4.4.60.0040.0214.76
4.4.50.0040.0224.77
4.4.40.0070.0484.71
4.4.30.0020.0234.76
4.4.20.0030.0254.84
4.4.10.0040.0234.85
4.4.00.0030.0344.76
4.3.110.0040.0224.66
4.3.100.0030.0234.66
4.3.90.0050.0204.64
4.3.80.0040.0324.58
4.3.70.0060.0304.63
4.3.60.0050.0214.63
4.3.50.0060.0204.63
4.3.40.0040.0324.54
4.3.30.0020.0223.29
4.3.20.0020.0203.26
4.3.10.0040.0203.21
4.3.00.0330.01310.55

preferences:
69.81 ms | 400 KiB | 5 Q