3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Ref ID =={1234} [201] (text message)"; preg_match_all("/[{|\[|\(](.*?)[\]|\)\}]/", $str, $matches); var_dump($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.4.140.0150.00817.52
8.4.130.0110.01117.80
8.4.120.0120.00820.54
8.4.110.0130.01122.50
8.4.100.0150.00617.81
8.4.90.0070.00320.65
8.4.80.0090.01118.72
8.4.70.0070.00220.71
8.4.60.0120.00920.41
8.4.50.0090.01122.19
8.4.40.0100.01017.58
8.4.30.0060.00917.68
8.4.20.0140.00718.82
8.4.10.0150.00317.34
8.3.270.0130.00716.78
8.3.260.0120.00816.52
8.3.250.0110.00918.73
8.3.240.0120.00818.89
8.3.230.0110.00816.79
8.3.220.0100.00819.11
8.3.210.0080.01118.33
8.3.200.0050.00416.41
8.3.190.0050.00417.25
8.3.180.0110.00818.84
8.3.170.0070.00717.29
8.3.160.0120.00616.59
8.3.150.0110.01118.68
8.3.140.0080.01116.60
8.3.130.0060.00318.39
8.3.120.0040.01519.04
8.3.110.0040.01620.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0090.00016.75
8.3.70.0110.00416.58
8.3.60.0070.01018.55
8.3.50.0100.00517.58
8.3.40.0070.00718.67
8.3.30.0150.00018.79
8.3.20.0050.00318.69
8.3.10.0080.00023.52
8.3.00.0040.00421.90
8.2.290.0120.00716.95
8.2.280.0130.00718.33
8.2.270.0100.01018.54
8.2.260.0030.00617.40
8.2.250.0070.00716.62
8.2.240.0050.00517.26
8.2.230.0040.00422.58
8.2.220.0030.00637.54
8.2.210.0150.00326.77
8.2.200.0040.00416.63
8.2.190.0000.01416.63
8.2.180.0110.00418.41
8.2.170.0090.00919.09
8.2.160.0180.00022.96
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00419.70
8.2.120.0040.00426.35
8.2.110.0180.00021.12
8.2.100.0040.00818.02
8.2.90.0040.00419.01
8.2.80.0080.00017.97
8.2.70.0000.00817.75
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0040.00418.07
8.2.30.0030.00617.91
8.2.20.0000.00817.95
8.2.10.0070.00017.91
8.2.00.0000.00819.39
8.1.330.0110.00816.33
8.1.320.0080.01217.94
8.1.310.0140.00316.34
8.1.300.0060.00316.70
8.1.290.0090.00018.88
8.1.280.0000.01525.92
8.1.270.0060.00320.64
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01120.91
8.1.230.0060.00622.21
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0090.00018.62
8.1.160.0040.00418.76
8.1.150.0000.00718.89
8.1.140.0000.00818.77
8.1.130.0070.00020.01
8.1.120.0080.00017.51
8.1.110.0070.00017.40
8.1.100.0030.00317.51
8.1.90.0000.00717.43
8.1.80.0000.00717.50
8.1.70.0000.00717.57
8.1.60.0040.00417.66
8.1.50.0030.00617.60
8.1.40.0050.00217.65
8.1.30.0050.00317.63
8.1.20.0000.00717.70
8.1.10.0000.00817.48
8.1.00.0000.00917.52
8.0.300.0030.00518.77
8.0.290.0000.01016.75
8.0.280.0000.00718.38
8.0.270.0000.00717.21
8.0.260.0040.00418.42
8.0.250.0000.00816.99
8.0.240.0040.00417.01
8.0.230.0070.00016.99
8.0.220.0030.00616.99
8.0.210.0040.00416.93
8.0.200.0000.00617.03
8.0.190.0040.00417.00
8.0.180.0000.00916.88
8.0.170.0030.00616.87
8.0.160.0040.00416.96
8.0.150.0000.00716.89
8.0.140.0040.00416.94
8.0.130.0030.00313.35
8.0.120.0000.00716.85
8.0.110.0000.00816.77
8.0.100.0070.00016.84
8.0.90.0070.00017.03
8.0.80.0080.00916.99
8.0.70.0000.00817.02
8.0.60.0080.00016.93
8.0.50.0000.00716.90
8.0.30.0100.01117.29
8.0.20.0130.00717.40
8.0.10.0000.00816.88
8.0.00.0130.00616.80
7.4.330.0000.00615.55
7.4.320.0060.00016.67
7.4.300.0030.00316.65
7.4.290.0000.00716.70
7.4.280.0000.00816.61
7.4.270.0070.00016.77
7.4.260.0040.00416.76
7.4.250.0030.00516.70
7.4.240.0040.00416.65
7.4.230.0070.00016.75
7.4.220.0040.00416.62
7.4.210.0080.00816.67
7.4.200.0000.00716.63
7.4.160.0090.00816.59
7.4.140.0100.01017.86
7.4.130.0180.00016.70
7.4.120.0110.00916.52
7.4.110.0030.01416.65
7.4.100.0110.00716.61
7.4.90.0090.00916.57
7.4.80.0120.00619.39
7.4.70.0120.00616.60
7.4.60.0050.01716.57
7.4.50.0100.00316.59
7.4.40.0120.01216.62
7.4.00.0110.00715.03
7.3.330.0030.00313.12
7.3.320.0000.00513.13
7.3.310.0030.00316.24
7.3.300.0000.00616.30
7.3.290.0000.00716.14
7.3.280.0080.00716.25
7.3.260.0100.00916.49
7.3.240.0120.01116.41
7.3.230.0150.00316.27
7.3.210.0140.00316.80
7.3.200.0090.01216.56
7.3.190.0060.01516.65
7.3.180.0080.00816.57
7.3.170.0100.01016.22
7.3.160.0120.00316.39
7.2.330.0070.01716.69
7.2.320.0040.01316.51
7.2.310.0110.00616.49
7.2.300.0100.01016.56
7.2.290.0110.00516.54
7.2.90.3590.00714.52
7.2.80.3240.01314.40
7.2.70.3800.00714.99
7.2.60.3420.01014.83
7.2.50.4130.00715.04
7.2.40.4110.00714.59
7.2.30.4180.01015.00
7.2.20.3330.01315.16
7.2.10.3000.00715.00
7.2.00.3300.01314.72
7.1.210.3760.00713.56
7.1.200.3500.01014.03
7.1.190.3440.01013.95
7.1.180.3550.00313.85
7.1.170.3060.00614.07
7.1.160.2720.01313.72
7.1.150.3390.00313.70
7.1.140.3530.00713.97
7.1.130.3440.00713.77
7.1.120.3260.01313.75
7.1.110.3360.00613.78
7.1.100.3400.00713.87
7.1.90.4540.00713.84
7.1.80.2510.00313.77
7.1.70.3400.00313.98
7.1.60.3440.02032.07
7.1.50.4210.01631.87
7.1.40.5710.01331.86
7.1.30.5850.01331.89
7.1.20.5840.01731.94
7.1.10.4920.00313.90
7.1.00.3350.00713.82

preferences:
29.6 ms | 403 KiB | 5 Q