3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array['articletext'][] = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.<hr id=\'system-readmore\' />"; $array['articletext'][] = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.'; $array['articletext'][] = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.<hr id=\"system-readmore\" />Some more text after the readmore tag'; $pattern = '~(.*?)<hr\s+id=\\\[\'"]system-readmore\\\[\'"]\s+/>(.*)~is'; // run test cases foreach ($array['articletext'] as $article) { if (preg_match($pattern, $article, $matches)) { echo "MATCH\n"; echo "\$introtext = $matches[1]\n"; echo "\$fulltext = $matches[2]\n---\n"; } else { echo "NO MATCH\n"; echo "\$introtext = $article\n"; echo "\$fulltext = [null]\n---\n"; } }

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.40.0130.00918.95
8.3.30.0150.00418.95
8.3.20.0000.00819.61
8.3.10.0080.00023.49
8.3.00.0040.00421.72
8.2.170.0100.00722.96
8.2.160.0070.00722.24
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00822.43
8.2.120.0040.00426.35
8.2.110.0030.00621.17
8.2.100.0090.00318.22
8.2.90.0000.00818.47
8.2.80.0000.00818.02
8.2.70.0030.00618.05
8.2.60.0030.00518.09
8.2.50.0000.00818.10
8.2.40.0080.00021.40
8.2.30.0000.00819.48
8.2.20.0040.00418.30
8.2.10.0000.00718.37
8.2.00.0000.00819.41
8.1.270.0090.00020.96
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00617.89
8.1.230.0040.00720.90
8.1.220.0080.00017.77
8.1.210.0030.00618.79
8.1.200.0100.00017.72
8.1.190.0060.00317.48
8.1.180.0000.00918.10
8.1.170.0030.00618.84
8.1.160.0000.01118.95
8.1.150.0060.00319.01
8.1.140.0000.00722.20
8.1.130.0000.00820.20
8.1.120.0000.00717.66
8.1.110.0060.00317.67
8.1.100.0040.00417.66
8.1.90.0000.00717.52
8.1.80.0000.00717.59
8.1.70.0000.00717.53
8.1.60.0060.00317.81
8.1.50.0040.00417.71
8.1.40.0000.00817.59
8.1.30.0030.00617.83
8.1.20.0030.00617.73
8.1.10.0000.00917.82
8.1.00.0040.00417.76
8.0.300.0040.00419.93
8.0.290.0050.00317.00
8.0.280.0070.00018.45
8.0.270.0030.00317.30
8.0.260.0000.00618.53
8.0.250.0000.00717.12
8.0.240.0070.00016.98
8.0.230.0000.00817.05
8.0.220.0000.00717.02
8.0.210.0000.00717.04
8.0.200.0060.00017.07
8.0.190.0000.00717.13
8.0.180.0030.00617.12
8.0.170.0040.00417.11
8.0.160.0030.00717.05
8.0.150.0030.00516.93
8.0.140.0000.00717.02
8.0.130.0000.00713.46
8.0.120.0040.00417.14
8.0.110.0040.00417.25
8.0.100.0050.00216.91
8.0.90.0000.00717.07
8.0.80.0100.01017.08
8.0.70.0080.00016.96
8.0.60.0060.00317.13
8.0.50.0030.00616.96
8.0.30.0090.01117.45
8.0.20.0130.00617.42
8.0.10.0070.00017.16
8.0.00.0140.00616.92
7.4.330.0060.00016.76
7.4.320.0030.00316.90
7.4.300.0000.00716.92
7.4.290.0030.00316.90
7.4.280.0060.00316.80
7.4.270.0000.00816.93
7.4.260.0030.00316.89
7.4.250.0000.00816.85
7.4.240.0030.00616.88
7.4.230.0040.00416.90
7.4.220.0080.00016.82
7.4.210.0090.00916.91
7.4.200.0030.00517.00
7.4.160.0090.01116.86
7.4.140.0120.01017.86
7.4.130.0110.00716.77
7.4.120.0130.00916.82
7.4.110.0090.00916.80
7.4.100.0100.01016.73
7.4.90.0070.01016.69
7.4.80.0150.00319.39
7.4.70.0070.01416.69
7.4.60.0150.00316.71
7.4.50.0040.00916.75
7.4.40.0100.00716.68
7.4.00.0020.01615.31
7.3.330.0030.00313.23
7.3.320.0060.00013.18
7.3.310.0030.00316.41
7.3.300.0030.00316.32
7.3.290.0030.00316.49
7.3.280.0110.00816.47
7.3.260.0140.00616.65
7.3.240.0050.01416.68
7.3.230.0130.00616.68
7.3.210.0030.01316.56
7.3.200.0120.00916.50
7.3.190.0090.00816.60
7.3.180.0130.00316.49
7.3.170.0110.00716.59
7.3.160.0070.01016.72
7.3.120.0070.01015.04
7.3.110.0100.01015.23
7.3.100.0090.00915.21
7.3.90.0040.01115.07
7.3.80.0070.00715.17
7.3.70.0000.01314.84
7.3.60.0030.01015.10
7.3.50.0050.00514.84
7.3.40.0040.01115.06
7.3.30.0000.00915.12
7.3.20.0080.00416.59
7.3.10.0070.00816.71
7.3.00.0120.00716.51
7.2.330.0060.01016.92
7.2.320.0080.00816.68
7.2.310.0120.00516.83
7.2.300.0100.01416.88
7.2.290.0090.01216.84
7.2.250.0100.01015.27
7.2.240.0030.01715.23
7.2.230.0060.00915.23
7.2.220.0000.01014.91
7.2.210.0120.00315.37
7.2.200.0080.00615.11
7.2.190.0060.01015.06
7.2.180.0030.01414.94
7.2.170.0110.00415.36
7.2.130.0140.01116.98
7.2.120.0210.01015.91
7.2.110.0240.00615.81
7.2.100.0340.00315.81
7.2.90.0240.00916.00
7.2.80.0240.00815.67
7.2.70.0160.00915.96
7.2.60.0230.00715.81
7.2.50.0280.00515.92
7.2.40.0150.01116.09
7.2.30.0190.00915.90
7.2.20.0240.00716.10
7.2.10.0250.01215.94
7.2.00.0430.01016.12
7.1.330.0040.00816.09
7.1.320.0080.00416.01
7.1.310.0030.00915.99
7.1.300.0100.00015.64
7.1.290.0040.00815.87
7.1.280.0100.00715.87
7.1.270.0080.00315.93
7.1.260.0060.01216.12
7.1.250.0040.01115.54
7.1.240.0470.00414.36
7.1.230.0370.00614.04
7.1.220.0440.00914.02
7.1.210.0330.00714.21
7.1.200.0430.00714.27
7.1.190.0330.00714.09
7.1.180.0320.01314.13
7.1.170.0220.01314.18
7.1.160.0410.00614.09
7.1.150.0300.00714.00
7.1.140.0450.00314.19
7.1.130.0340.01314.15
7.1.120.0410.00914.29
7.1.110.0410.00414.11
7.1.100.0320.01314.25
7.1.90.0920.00314.08
7.1.80.0360.00614.23
7.1.70.0230.00614.13
7.1.60.0230.00613.77
7.1.50.0220.00314.05
7.1.40.0270.00314.23
7.1.30.0240.00713.99
7.1.20.0310.00314.19
7.1.10.0320.01614.07
7.1.00.0330.01513.95
5.6.380.0100.00714.25

preferences:
66.75 ms | 400 KiB | 5 Q