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.70.0140.00718.55
8.3.60.0070.00716.36
8.3.50.0140.00422.07
8.3.40.0070.00718.93
8.3.30.0090.00619.00
8.3.20.0040.00420.16
8.3.10.0080.00023.71
8.3.00.0030.00519.38
8.2.180.0120.00318.31
8.2.170.0070.00722.96
8.2.160.0100.00320.44
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.39
8.2.110.0070.00419.39
8.2.100.0130.00317.91
8.2.90.0080.00018.99
8.2.80.0050.00317.97
8.2.70.0000.00817.75
8.2.60.0030.00517.80
8.2.50.0040.00418.10
8.2.40.0090.00019.89
8.2.30.0060.00317.89
8.2.20.0000.00817.65
8.2.10.0040.00418.00
8.2.00.0000.01017.76
8.1.280.0060.00925.92
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0050.00522.33
8.1.230.0040.00717.70
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0050.00517.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0060.00318.71
8.1.160.0030.00321.95
8.1.150.0040.00418.78
8.1.140.0080.00017.52
8.1.130.0070.00017.78
8.1.120.0000.00717.43
8.1.110.0000.00817.49
8.1.100.0000.00717.58
8.1.90.0000.00717.59
8.1.80.0040.00417.54
8.1.70.0030.00317.39
8.1.60.0000.00917.68
8.1.50.0000.00817.48
8.1.40.0080.00017.50
8.1.30.0050.00317.66
8.1.20.0040.00417.69
8.1.10.0070.00017.70
8.1.00.0040.00417.45
8.0.300.0100.00018.77
8.0.290.0030.00616.75
8.0.280.0070.00018.39
8.0.270.0070.00017.17
8.0.260.0000.00717.13
8.0.250.0070.00017.00
8.0.240.0030.00317.04
8.0.230.0000.00716.91
8.0.220.0000.00716.98
8.0.210.0040.00416.97
8.0.200.0000.00716.98
8.0.190.0040.00417.05
8.0.180.0000.00716.92
8.0.170.0040.00416.95
8.0.160.0030.00316.95
8.0.150.0060.00316.82
8.0.140.0070.00016.95
8.0.130.0000.00613.39
8.0.120.0030.00616.86
8.0.110.0030.00516.92
8.0.100.0040.00417.08
8.0.90.0030.00517.00
8.0.80.0100.00716.92
8.0.70.0000.00716.91
8.0.60.0000.00716.90
8.0.50.0000.00816.90
8.0.30.0170.00817.19
8.0.20.0100.01117.40
8.0.10.0040.00417.15
8.0.00.0110.00617.05
7.4.330.0000.00515.00
7.4.320.0000.00616.55
7.4.300.0000.00716.63
7.4.290.0000.00716.75
7.4.280.0000.00916.69
7.4.270.0030.00316.73
7.4.260.0040.00416.66
7.4.250.0040.00416.62
7.4.240.0050.00216.62
7.4.230.0020.00516.72
7.4.220.0120.00916.61
7.4.210.0080.00716.79
7.4.200.0030.00316.83
7.4.190.0030.00316.60
7.4.160.0090.00616.52
7.4.150.0140.01017.40
7.4.140.0130.00917.86
7.4.130.0120.00716.67
7.4.120.0150.00516.52
7.4.110.0110.00716.69
7.4.100.0100.00716.62
7.4.90.0100.01316.53
7.4.80.0070.01119.39
7.4.70.0060.00916.43
7.4.60.0160.00316.63
7.4.50.0040.00416.70
7.4.40.0000.02016.50
7.4.30.0080.00816.62
7.4.00.0040.00414.96
7.3.330.0060.00013.04
7.3.320.0000.00513.18
7.3.310.0040.00416.05
7.3.300.0030.00316.13
7.3.290.0060.01416.34
7.3.280.0070.01116.29
7.3.270.0040.01217.40
7.3.260.0090.00916.38
7.3.250.0120.00516.44
7.3.240.0130.00316.27
7.3.230.0120.00916.73
7.3.210.0150.00616.36
7.3.200.0080.01319.39
7.3.190.0110.00716.20
7.3.180.0060.00916.61
7.3.170.0140.00316.49
7.3.160.0120.00316.31
7.3.120.0130.00314.76
7.2.330.0060.01216.50
7.2.320.0070.01016.69
7.2.310.0100.01316.55
7.2.300.0030.01316.46
7.2.290.0090.01316.50
7.2.00.0050.00519.46
7.1.100.0050.00318.19
7.1.70.0030.00516.95
7.1.60.0060.01619.46
7.1.50.0300.00735.01
7.1.00.0000.08022.47
7.0.200.0270.00914.80
7.0.140.0100.06721.97
7.0.60.0000.09020.01
7.0.50.0030.04317.73
7.0.40.0030.04320.20
7.0.30.0330.07720.25
7.0.20.0200.07320.25
7.0.10.0030.04720.17
7.0.00.0070.05320.20
5.6.280.0030.07020.77
5.6.210.0130.07020.68
5.6.200.0030.06718.19
5.6.190.0030.08720.67
5.6.180.0270.08320.54
5.6.170.0330.06020.47
5.6.160.0000.06320.46
5.6.150.0070.06318.27
5.6.140.0070.08318.17
5.6.130.0130.06018.17
5.6.120.0030.04021.02
5.6.110.0100.07321.09
5.6.100.0070.06021.10
5.6.90.0130.07721.06
5.6.80.0030.07020.24
5.5.350.3070.03320.34
5.5.340.0030.05317.99
5.5.330.0000.04320.40
5.5.320.0400.07320.43
5.5.310.0170.06020.27
5.5.300.0070.08018.06
5.5.290.0030.07718.03
5.5.280.0070.08320.86
5.5.270.0030.04720.74
5.5.260.0130.08020.95
5.5.250.0070.08320.60
5.5.240.0000.03320.27
5.4.450.0900.05319.17
5.4.440.0830.06319.18
5.4.430.0300.07019.54
5.4.420.0870.06319.18
5.4.410.0400.08019.25
5.4.400.0970.05719.05
5.4.390.0570.06319.14
5.4.380.0270.05718.53
5.4.370.0400.05318.71
5.4.360.0230.05318.74
5.4.350.0200.06318.61
5.4.340.0400.04018.76
5.4.320.0050.04212.48
5.4.310.0110.03912.47
5.4.300.0060.04312.48
5.4.290.0060.04112.47
5.4.280.0090.08612.37
5.4.270.0080.03812.37
5.4.260.0090.04312.37
5.4.250.0100.03812.37
5.4.240.0080.04112.37
5.4.230.0060.04412.36
5.4.220.0090.04012.36
5.4.210.0060.04412.36
5.4.200.0140.09812.36
5.4.190.0100.03512.36
5.4.180.0090.03712.36
5.4.170.0120.06112.37
5.4.160.0060.04112.37
5.4.150.0070.03912.36
5.4.140.0060.04212.05
5.4.130.0050.04112.04
5.4.120.0080.03911.99
5.4.110.0100.04111.99
5.4.100.0060.03911.99
5.4.90.0080.03911.98
5.4.80.0050.04611.99
5.4.70.0040.04111.98
5.4.60.0050.04411.98
5.4.50.0080.04911.98
5.4.40.0090.07211.97
5.4.30.0190.10011.97
5.4.20.0080.06111.97
5.4.10.0130.05011.97
5.4.00.0100.04911.46
5.3.290.0050.04512.80
5.3.280.0180.05012.71
5.3.270.0070.04112.72
5.3.260.0070.04112.72
5.3.250.0060.04012.72
5.3.240.0090.03612.72
5.3.230.0080.03912.71
5.3.220.0060.04012.68
5.3.210.0060.04012.68
5.3.200.0060.03712.68
5.3.190.0050.03912.67
5.3.180.0070.03612.68
5.3.170.0050.03812.67
5.3.160.0080.03712.68
5.3.150.0070.04212.68
5.3.140.0140.05312.66
5.3.130.0090.04612.66
5.3.120.0060.04012.66
5.3.110.0060.04112.66
5.3.100.0140.07312.12
5.3.90.0110.04512.10
5.3.80.0090.05612.09
5.3.70.0140.08512.09
5.3.60.0090.03612.07
5.3.50.0040.04012.02
5.3.40.0060.03812.02
5.3.30.0050.03911.98
5.3.20.0080.03611.76
5.3.10.0070.03411.73
5.3.00.0120.04011.71
5.2.170.0070.0409.21
5.2.160.0130.0529.21
5.2.150.0060.0469.22
5.2.140.0090.0709.21
5.2.130.0050.0489.17
5.2.120.0130.0399.17
5.2.110.0100.0399.18
5.2.100.0060.0449.18
5.2.90.0110.0899.17
5.2.80.0070.0469.17
5.2.70.0090.0729.17
5.2.60.0200.1159.13
5.2.50.0080.0429.09
5.2.40.0070.0389.07
5.2.30.0080.0359.06
5.2.20.0080.0379.04
5.2.10.0060.0368.93
5.2.00.0060.0378.79
5.1.60.0080.0308.06
5.1.50.0230.0688.05
5.1.40.0060.0408.04
5.1.30.0050.0458.39
5.1.20.0070.0448.41
5.1.10.0080.0458.13
5.1.00.0140.0348.14
5.0.50.0050.0336.62
5.0.40.0060.0286.47
5.0.30.0100.0446.29
5.0.20.0050.0256.25
5.0.10.0040.0306.23
5.0.00.0030.0376.22
4.4.90.0050.0134.78
4.4.80.0040.0244.75
4.4.70.0030.0214.75
4.4.60.0040.0144.75
4.4.50.0050.0144.77
4.4.40.0050.0304.71
4.4.30.0030.0214.76
4.4.20.0010.0234.84
4.4.10.0020.0234.85
4.4.00.0070.0314.75
4.3.110.0030.0254.67
4.3.100.0030.0224.66
4.3.90.0020.0214.63
4.3.80.0060.0284.59
4.3.70.0070.0184.63
4.3.60.0050.0224.63
4.3.50.0050.0184.62
4.3.40.0050.0294.53
4.3.30.0020.0213.28
4.3.20.0020.0213.26
4.3.10.0020.0203.22
4.3.00.0070.03010.55

preferences:
39.74 ms | 401 KiB | 5 Q