3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = "text text text text [helloo] text [hello2] (hello3) text"; $pattern = '/\[(.+?)\]/is'; 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.0040.01116.50
8.3.50.0140.00522.06
8.3.40.0040.01118.91
8.3.30.0070.00719.12
8.3.20.0070.00020.29
8.3.10.0000.00721.69
8.3.00.0040.00419.50
8.2.180.0150.00316.34
8.2.170.0070.00722.96
8.2.160.0070.00720.33
8.2.150.0030.00524.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00222.40
8.2.110.0110.00021.16
8.2.100.0090.00317.84
8.2.90.0000.00818.03
8.2.80.0000.00818.09
8.2.70.0070.00317.63
8.2.60.0000.00917.75
8.2.50.0040.00417.75
8.2.40.0040.00419.60
8.2.30.0040.00417.89
8.2.20.0000.00817.69
8.2.10.0000.00818.07
8.2.00.0040.00417.69
8.1.280.0040.01525.92
8.1.270.0050.00323.92
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0070.00322.54
8.1.230.0050.00522.75
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0080.00017.23
8.1.180.0030.00518.10
8.1.170.0040.00418.96
8.1.160.0050.00318.80
8.1.150.0050.00518.75
8.1.140.0070.00017.43
8.1.130.0080.00017.76
8.1.120.0000.00717.47
8.1.110.0050.00317.41
8.1.100.0000.00717.55
8.1.90.0040.00417.51
8.1.80.0040.00417.56
8.1.70.0000.00717.54
8.1.60.0060.00617.70
8.1.50.0040.00417.54
8.1.40.0050.00317.66
8.1.30.0000.00817.64
8.1.20.0070.00017.71
8.1.10.0000.00717.51
8.1.00.0040.00417.56
8.0.300.0040.00420.03
8.0.290.0060.00316.75
8.0.280.0000.00818.12
8.0.270.0070.00018.00
8.0.260.0030.00317.09
8.0.250.0000.00716.98
8.0.240.0070.00017.05
8.0.230.0030.00316.90
8.0.220.0040.00416.88
8.0.210.0070.00016.88
8.0.200.0000.00616.95
8.0.190.0040.00416.96
8.0.180.0040.00416.86
8.0.170.0040.00416.96
8.0.160.0030.00316.97
8.0.150.0040.00416.81
8.0.140.0000.00716.83
8.0.130.0050.00013.39
8.0.120.0000.00816.82
8.0.110.0080.00016.91
8.0.100.0040.00416.95
8.0.90.0040.00416.86
8.0.80.0070.01116.90
8.0.70.0000.00716.99
8.0.60.0050.00217.00
8.0.50.0000.00716.85
8.0.30.0110.01017.13
8.0.20.0100.00817.40
8.0.10.0000.00717.20
8.0.00.0110.00816.77
7.4.330.0040.00015.00
7.4.320.0000.00616.57
7.4.300.0030.00316.71
7.4.290.0030.00316.62
7.4.280.0100.00016.69
7.4.270.0020.00516.72
7.4.260.0070.00016.57
7.4.250.0000.00816.56
7.4.240.0040.00416.61
7.4.230.0000.00716.49
7.4.220.0160.01216.85
7.4.210.0100.00616.66
7.4.200.0070.00016.49
7.4.190.0000.00716.62
7.4.160.0030.01316.78
7.4.150.0100.00717.40
7.4.140.0100.01117.86
7.4.130.0100.00716.55
7.4.120.0120.00516.61
7.4.110.0110.00616.59
7.4.100.0100.01316.61
7.4.90.0130.00316.54
7.4.80.0140.00619.39
7.4.70.0090.00616.73
7.4.60.0070.01016.62
7.4.50.0050.00016.52
7.4.40.0130.01016.46
7.4.30.0160.00016.55
7.4.00.0080.00815.07
7.3.330.0050.00013.20
7.3.320.0050.00013.01
7.3.310.0000.00816.14
7.3.300.0060.00016.30
7.3.290.0030.01016.28
7.3.280.0060.01216.26
7.3.270.0090.00917.40
7.3.260.0130.01016.68
7.3.250.0070.01216.36
7.3.240.0120.01316.61
7.3.230.0120.00616.39
7.3.210.0070.01016.57
7.3.200.0120.01119.39
7.3.190.0130.00416.39
7.3.180.0060.00916.19
7.3.170.0090.00616.35
7.3.160.0030.01416.22
7.3.120.0140.00315.13
7.3.00.0070.00416.70
7.2.330.0110.00716.51
7.2.320.0040.01316.57
7.2.310.0090.01616.60
7.2.300.0100.01316.65
7.2.290.0060.01116.69
7.2.130.0070.00717.08
7.2.120.0070.01016.93
7.2.110.0070.00716.87
7.2.100.0040.00816.54
7.2.90.0110.00416.81
7.2.80.0060.01016.63
7.2.70.0150.00316.33
7.2.60.0110.00816.80
7.2.50.0090.00916.70
7.2.40.0090.00916.62
7.2.30.0110.00816.68
7.2.20.0080.00416.57
7.2.10.0090.00616.87
7.2.00.0060.00918.19
7.1.250.0180.00015.99
7.1.240.0040.00416.03
7.1.230.0030.00615.98
7.1.220.0070.00715.78
7.1.210.0000.01415.80
7.1.200.0040.00715.67
7.1.190.0170.00515.81
7.1.180.0070.01315.88
7.1.170.0160.00015.44
7.1.160.0100.01015.91
7.1.150.0040.01215.82
7.1.140.0040.01215.75
7.1.130.0130.00315.84
7.1.120.0070.00415.91
7.1.110.0090.00616.02
7.1.100.0070.00617.19
7.1.90.0080.00415.90
7.1.80.0040.01115.52
7.1.70.0080.00316.57
7.1.60.0060.01317.67
7.1.50.0180.00825.42
7.1.40.0000.00715.79
7.1.30.0030.01015.69
7.1.20.0000.01415.95
7.1.10.0060.00615.89
7.1.00.0000.04419.18
7.0.330.0030.00515.15
7.0.320.0030.00615.48
7.0.310.0140.00415.50
7.0.300.0100.00315.25
7.0.290.0070.01015.48
7.0.280.0070.01015.43
7.0.270.0030.01015.72
7.0.260.0070.00715.50
7.0.250.0040.01115.56
7.0.240.0030.01315.61
7.0.230.0030.00815.33
7.0.220.0040.00815.40
7.0.210.0030.01015.15
7.0.200.0160.00515.13
7.0.190.0120.00015.56
7.0.180.0070.00415.59
7.0.170.0030.00615.27
7.0.160.0080.00015.56
7.0.150.0030.00915.24
7.0.140.0000.04318.83
7.0.130.0090.00615.63
7.0.120.0000.01315.75
7.0.110.0030.00615.29
7.0.100.0060.01215.47
7.0.90.0030.01015.47
7.0.80.0000.01315.19
7.0.70.0090.00615.62
7.0.60.0060.03117.62
7.0.50.0100.04316.50
7.0.40.0030.02516.92
7.0.30.0200.04016.99
7.0.20.0160.03616.83
7.0.10.0080.04316.92
7.0.00.0050.05316.83
5.6.380.0070.00714.08
5.6.370.0090.00614.13
5.6.360.0030.01313.93
5.6.350.0110.00614.33
5.6.340.0030.01014.52
5.6.330.0030.00714.64
5.6.320.0030.01014.54
5.6.310.0070.00714.11
5.6.300.0030.00714.49
5.6.290.0070.00714.52
5.6.280.0040.00413.97
5.6.270.0100.00514.22
5.6.260.0070.01014.36
5.6.250.0040.01214.07
5.6.240.0030.01213.80
5.6.230.0070.00714.20
5.6.220.0070.00713.93
5.6.210.0090.03517.23
5.6.200.0060.03316.16
5.6.190.0050.03517.42
5.6.180.0150.03017.32
5.6.170.0140.04517.42
5.6.160.0090.04417.32
5.6.150.0100.04216.25
5.6.140.0070.02116.33
5.6.130.0050.02616.13
5.6.120.0030.04617.56
5.6.110.0030.05017.52
5.6.100.0110.04117.46
5.6.90.0120.04017.60
5.6.80.0070.04217.37
5.6.70.0040.00814.13
5.6.60.0030.00914.02
5.6.50.0030.01214.43
5.6.40.0030.01214.10
5.6.30.0140.00313.90
5.6.20.0090.00314.26
5.6.10.0030.01214.06
5.6.00.0070.00713.95
5.5.380.0000.01110.95
5.5.370.0030.00610.99
5.5.360.0020.00511.20
5.5.350.2170.02315.71
5.5.340.0090.02014.47
5.5.330.0050.02315.57
5.5.320.0190.03015.72
5.5.310.0180.04115.77
5.5.300.0050.03914.40
5.5.290.0030.04914.62
5.5.280.0080.03015.98
5.5.270.0100.04015.81
5.5.260.0070.04515.83
5.5.250.0070.04215.84
5.5.240.0030.04315.59
5.5.230.0000.00611.09
5.5.220.0000.00910.87
5.5.210.0040.00411.13
5.5.200.0040.00411.11
5.5.190.0090.00310.96
5.5.180.0060.00611.04
5.5.170.0000.00910.80
5.5.160.0070.00310.80
5.5.150.0030.00910.81
5.5.140.0000.00610.89
5.5.130.0000.00810.94
5.5.120.0040.00410.80
5.5.110.0040.00711.05
5.5.100.0090.00011.04
5.5.90.0070.00411.14
5.5.80.0000.00710.92
5.5.70.0050.00510.99
5.5.60.0030.00911.02
5.5.50.0000.00710.71
5.5.40.0040.00710.89
5.5.30.0080.00310.95
5.5.20.0060.00611.03
5.5.10.0030.00910.64
5.5.00.0030.00610.60
5.4.450.0000.03115.15
5.4.440.0100.01915.29
5.4.430.0070.02015.39
5.4.420.0030.02515.15
5.4.410.0020.02415.04
5.4.400.0630.02514.98
5.4.390.0050.02214.96
5.4.380.0020.02215.13
5.4.370.0020.02415.07
5.4.360.1000.02415.02
5.4.350.0070.02215.11
5.4.340.0030.02715.16
5.4.330.0030.00710.63
5.4.320.0030.02315.05
5.4.310.0700.02314.77
5.4.300.0080.03715.08
5.4.290.0080.03714.93
5.4.280.0230.02515.17
5.4.270.1050.02315.12
5.4.260.0030.04014.93
5.4.250.0030.02514.95
5.4.240.0680.03714.91
5.4.230.0950.01815.13
5.4.220.0420.03015.03
5.4.210.0050.02615.06
5.4.200.0030.02714.73
5.4.190.0880.01914.92
5.4.180.0990.02014.97
5.4.170.0160.02314.94
5.4.160.0080.02714.99
5.4.150.0110.02315.03
5.4.140.0050.02313.59
5.4.130.0100.02313.79
5.4.120.0130.01813.68
5.4.110.0130.01913.39
5.4.100.0110.02313.80
5.4.90.0100.02113.55
5.4.80.0060.02713.62
5.4.70.0130.02113.68
5.4.60.0120.01913.87
5.4.50.0130.03613.62
5.4.40.0090.02113.76
5.4.30.0110.01813.74
5.4.20.0100.01813.72
5.4.10.0120.02013.76
5.4.00.0080.02313.45
5.3.290.0130.01812.58
5.3.280.0160.01312.59
5.3.270.0100.02412.57
5.3.260.0100.02012.38
5.3.250.0120.02412.60
5.3.240.0100.02212.46
5.3.230.0140.01912.58
5.3.220.0070.02612.43
5.3.210.0140.01612.50
5.3.200.0170.02112.54
5.3.190.0050.02312.40
5.3.180.0070.02212.57
5.3.170.0100.02212.62
5.3.160.0100.02512.40
5.3.150.0120.01812.54
5.3.140.0080.01712.64
5.3.130.0060.02412.47
5.3.120.0160.01812.56
5.3.110.0150.02412.60
5.3.100.0120.02012.06
5.3.90.0120.02312.27
5.3.80.0050.02512.24
5.3.70.0120.01812.17
5.3.60.0070.02412.25
5.3.50.0100.02112.07
5.3.40.0120.02212.11
5.3.30.0160.01712.13
5.3.20.0140.01712.13
5.3.10.0110.02111.91
5.3.00.0140.01712.00
5.2.170.0000.02010.71
5.2.160.0050.02010.79
5.2.150.0050.02110.79
5.2.140.0120.01310.76
5.2.130.0130.01210.67
5.2.120.0030.02310.77
5.2.110.0070.02110.71
5.2.100.0120.01710.76
5.2.90.0100.01610.75
5.2.80.0100.01710.72
5.2.70.0090.01610.67
5.2.60.0100.01510.67
5.2.50.0100.01710.67
5.2.40.0050.02010.67
5.2.30.0070.02510.70
5.2.20.0130.01610.67
5.2.10.0080.01610.67
5.2.00.0070.01810.67
5.1.60.0120.02610.67
5.1.50.0070.01510.67
5.1.40.0090.01010.68
5.1.30.0050.01910.68
5.1.20.0120.01210.68
5.1.10.0060.01810.68
5.1.00.0120.01810.68
5.0.50.0080.01210.68
5.0.40.0020.01810.68
5.0.30.0050.02010.68
5.0.20.0070.01910.68
5.0.10.0030.02010.68
5.0.00.0040.02610.68
4.4.90.0060.00810.68
4.4.80.0050.01010.68
4.4.70.0040.01010.68
4.4.60.0070.02010.68
4.4.50.0030.02110.68
4.4.40.0070.01410.68
4.4.30.0020.01210.68
4.4.20.0050.02010.68
4.4.10.0050.02010.68
4.4.00.0010.01910.68
4.3.110.0010.01110.68
4.3.100.0040.01010.68
4.3.90.0080.01310.68
4.3.80.0050.01210.68
4.3.70.0020.02110.68
4.3.60.0030.01110.68
4.3.50.0030.01610.68
4.3.40.0040.01510.68
4.3.30.0020.02210.68
4.3.20.0050.01810.68
4.3.10.0000.01410.68
4.3.00.0050.02010.68

preferences:
51.87 ms | 401 KiB | 5 Q