3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'thisip4:isatextexample&ineed.thistext&TXT:&andthis.idontneed&txt:&test.thistext&'; if (preg_match_all('~&([^&]*?thistext[^&]*)&~', $str, $m)) { print_r($m[1]); }

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.120.0100.01424.19
8.4.110.0120.00918.07
8.4.100.0130.00718.81
8.4.90.0090.01218.64
8.4.80.0050.00318.64
8.4.70.0110.00918.19
8.4.60.0120.00618.54
8.4.50.0110.00820.31
8.4.40.0080.00019.68
8.4.30.0100.01017.74
8.4.20.0160.00320.53
8.4.10.0040.00420.35
8.3.250.0090.00918.74
8.3.240.0130.00617.04
8.3.230.0070.00316.56
8.3.220.0040.00419.01
8.3.210.0080.00616.80
8.3.200.0060.00816.45
8.3.190.0040.00417.24
8.3.180.0090.01116.53
8.3.170.0140.00417.08
8.3.160.0120.00616.79
8.3.150.0090.01218.10
8.3.140.0060.00316.65
8.3.130.0140.00718.57
8.3.120.0040.00418.96
8.3.110.0060.00320.94
8.3.100.0090.00024.06
8.3.90.0030.00526.77
8.3.80.0070.00417.97
8.3.70.0070.00716.63
8.3.60.0090.00918.39
8.3.50.0120.00517.62
8.3.40.0150.00418.90
8.3.30.0090.00918.88
8.3.20.0070.00021.69
8.3.10.0050.00320.78
8.3.00.0040.00419.38
8.2.290.0110.00720.71
8.2.280.0100.00518.51
8.2.270.0040.01116.87
8.2.260.0000.00819.06
8.2.250.0050.00318.49
8.2.240.0000.00824.43
8.2.230.0030.00622.58
8.2.220.0150.00437.54
8.2.210.0040.00426.77
8.2.200.0090.00018.41
8.2.190.0140.00416.66
8.2.180.0030.01318.50
8.2.170.0140.00022.96
8.2.160.0080.00520.40
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00019.77
8.2.110.0030.00622.23
8.2.100.0110.00018.03
8.2.90.0040.00417.88
8.2.80.0080.00017.97
8.2.70.0060.00317.93
8.2.60.0050.00318.28
8.2.50.0050.00318.10
8.2.40.0060.00319.53
8.2.30.0050.00219.17
8.2.20.0040.00418.07
8.2.10.0080.00019.30
8.2.00.0000.00718.01
8.1.330.0100.00821.96
8.1.320.0100.00816.32
8.1.310.0080.00018.42
8.1.300.0040.00419.86
8.1.290.0060.00330.84
8.1.280.0060.01625.92
8.1.270.0070.00020.21
8.1.260.0080.00026.35
8.1.250.0040.00928.09
8.1.240.0030.00622.47
8.1.230.0130.00319.01
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0100.00017.36
8.1.190.0050.00317.25
8.1.180.0000.00918.10
8.1.170.0040.00418.71
8.1.160.0030.00618.89
8.1.150.0040.00418.72
8.1.140.0000.00720.68
8.1.130.0030.00320.14
8.1.120.0070.00017.56
8.1.110.0000.00717.42
8.1.100.0040.00417.55
8.1.90.0000.01117.48
8.1.80.0000.00717.44
8.1.70.0030.00317.45
8.1.60.0030.00517.68
8.1.50.0050.00317.64
8.1.40.0040.00817.63
8.1.30.0000.00917.60
8.1.20.0050.00517.75
8.1.10.0080.00017.73
8.1.00.0040.00417.61
8.0.300.0040.00419.77
8.0.290.0070.00016.71
8.0.280.0050.00218.39
8.0.270.0030.00317.27
8.0.260.0030.00318.39
8.0.250.0030.00316.97
8.0.240.0000.00617.03
8.0.230.0050.00317.05
8.0.220.0070.00017.02
8.0.210.0080.00017.04
8.0.200.0040.00416.92
8.0.190.0080.00017.03
8.0.180.0050.00316.99
8.0.170.0040.00416.97
8.0.160.0030.00516.93
8.0.150.0000.00716.89
8.0.140.0000.00716.93
8.0.130.0000.00713.36
8.0.120.0000.00716.84
8.0.110.0030.00516.89
8.0.100.0000.00716.90
8.0.90.0020.00517.00
8.0.80.0130.00616.90
8.0.70.0050.00316.98
8.0.60.0040.00417.00
8.0.50.0000.00816.86
8.0.30.0110.00817.19
8.0.20.0100.01017.08
8.0.10.0040.00417.08
8.0.00.0050.01316.99
7.4.330.0060.00015.55
7.4.320.0000.00716.60
7.4.300.0040.00416.66
7.4.290.0030.00516.73
7.4.280.0050.00216.58
7.4.270.0030.00316.66
7.4.260.0040.00416.71
7.4.250.0050.00216.71
7.4.240.0070.00016.76
7.4.230.0030.00316.73
7.4.220.0040.00416.79
7.4.210.0110.00616.68
7.4.200.0020.00516.68
7.4.160.0110.00716.61
7.4.140.0100.00717.86
7.4.130.0140.00316.71
7.4.120.0060.01316.84
7.4.110.0070.01016.61
7.4.100.0120.00616.64
7.4.90.0070.01416.53
7.4.80.0090.00919.39
7.4.70.0070.01016.55
7.4.60.0080.01016.69
7.4.50.0100.00716.27
7.4.40.0140.00316.67
7.4.00.0060.01215.12
7.3.330.0000.00613.09
7.3.320.0030.00313.33
7.3.310.0030.00316.39
7.3.300.0030.00316.21
7.3.290.0070.00016.38
7.3.280.0090.00716.32
7.3.260.0110.00816.58
7.3.240.0100.01016.44
7.3.230.0070.01016.82
7.3.210.0090.00916.38
7.3.200.0070.01316.60
7.3.190.0090.00916.55
7.3.180.0130.00916.77
7.3.170.0100.00716.53
7.3.160.0100.00616.63
7.3.120.0080.00614.99
7.3.110.0080.01114.95
7.3.100.0100.00515.00
7.3.90.0070.00714.74
7.3.80.0050.00814.79
7.3.70.0050.00914.80
7.3.60.0060.00814.89
7.3.50.0060.00814.95
7.3.40.0040.00814.86
7.3.30.0070.00814.76
7.3.20.1730.00915.67
7.3.10.0950.00716.11
7.3.00.0920.00615.92
7.2.330.0120.00616.66
7.2.320.0070.01016.71
7.2.310.0130.00316.71
7.2.300.0130.00316.51
7.2.290.0070.01516.81
7.2.250.0050.01415.12
7.2.240.0110.00814.88
7.2.230.0050.01215.05
7.2.220.0030.01215.07
7.2.210.0080.00714.94
7.2.200.0070.00514.93
7.2.190.0070.01015.02
7.2.180.0070.00514.96
7.2.170.0050.00815.07
7.2.150.2790.00615.05
7.2.140.3120.00714.97
7.2.130.3410.01015.00
7.2.120.2680.00614.99
7.2.110.2900.00314.85
7.2.100.3020.01014.73
7.2.90.3160.00715.14
7.2.80.3740.00714.79
7.2.70.3710.01315.17
7.2.60.3720.00714.79
7.2.50.3070.01015.06
7.2.40.2990.00714.90
7.2.30.2470.01314.67
7.2.20.2740.02015.21
7.2.10.2590.01014.97
7.2.00.2910.00014.82
7.1.330.0050.00816.09
7.1.320.0030.00615.85
7.1.310.0070.00715.89
7.1.300.0060.00515.94
7.1.290.0030.00716.04
7.1.280.0040.00615.89
7.1.270.0070.00715.98
7.1.260.0020.01015.86
7.1.250.2730.00014.02

preferences:
399.94 ms | 403 KiB | 5 Q