3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html=<<<'HTML' <div class="wrapper"> <div class="some_useless_div"> <p>Some useless text paragraph.</p> <div id="another_useless_div"> <p>The actual important part is: SOME_DYNAMIC_TEXT what I want to put into a variable. The text around that dynamic text is static text and will not change.</p> </div> </div> </div> HTML; preg_match('/The actual important part is\: (.*?) what I want to put into a variable\./',$html,$matches); $str=$matches[1]; var_dump($str);

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.0110.00924.30
8.4.110.0080.01222.61
8.4.100.0070.00317.96
8.4.90.0130.00720.82
8.4.80.0080.00619.69
8.4.70.0110.00917.88
8.4.60.0080.00917.90
8.4.50.0140.00920.43
8.4.40.0150.00317.81
8.4.30.0070.00317.93
8.4.20.0100.01019.56
8.4.10.0040.01817.86
8.3.250.0060.00219.04
8.3.240.0140.00517.20
8.3.230.0130.00616.51
8.3.220.0090.00917.22
8.3.210.0100.00820.82
8.3.200.0050.00416.59
8.3.190.0130.00616.65
8.3.180.0140.00718.31
8.3.170.0130.00617.17
8.3.160.0100.00718.83
8.3.150.0120.00616.54
8.3.140.0140.00416.68
8.3.130.0000.01018.52
8.3.120.0070.01120.39
8.3.110.0070.00320.94
8.3.100.0100.00024.06
8.3.90.0110.00626.77
8.3.80.0100.00019.36
8.3.70.0110.00716.75
8.3.60.0120.00916.63
8.3.50.0080.00816.58
8.3.40.0070.00719.04
8.3.30.0110.00418.67
8.3.20.0040.00421.69
8.3.10.0040.00421.89
8.3.00.0040.00420.90
8.2.290.0170.00420.53
8.2.280.0110.00818.51
8.2.270.0070.01316.57
8.2.260.0140.00417.54
8.2.250.0050.00318.61
8.2.240.0040.00419.18
8.2.230.0060.00322.58
8.2.220.0080.00037.54
8.2.210.0070.00026.77
8.2.200.0070.00318.88
8.2.190.0150.00018.79
8.2.180.0060.00916.76
8.2.170.0070.00719.04
8.2.160.0080.00822.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.00
8.2.110.0090.00020.43
8.2.100.0080.00417.84
8.2.90.0000.00818.01
8.2.80.0040.00419.39
8.2.70.0080.00018.03
8.2.60.0080.00017.63
8.2.50.0040.00418.10
8.2.40.0050.00320.50
8.2.30.0040.00419.52
8.2.20.0000.00717.96
8.2.10.0000.00717.84
8.2.00.0000.00818.05
8.1.330.0090.00623.45
8.1.320.0110.01116.68
8.1.310.0140.00316.82
8.1.300.0090.00619.87
8.1.290.0030.00730.84
8.1.280.0090.00925.92
8.1.270.0030.00523.98
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0100.00317.61
8.1.230.0000.01120.89
8.1.220.0050.00317.74
8.1.210.0000.00818.82
8.1.200.0000.00917.23
8.1.190.0050.00517.35
8.1.180.0000.00818.10
8.1.170.0040.00418.96
8.1.160.0000.00718.86
8.1.150.0080.00018.95
8.1.140.0000.00717.59
8.1.130.0040.00420.34
8.1.120.0000.00817.59
8.1.110.0000.00717.54
8.1.100.0070.00017.53
8.1.90.0070.00017.50
8.1.80.0000.00717.43
8.1.70.0070.00017.43
8.1.60.0040.00417.68
8.1.50.0040.00417.66
8.1.40.0040.00417.61
8.1.30.0040.00417.77
8.1.20.0000.00717.70
8.1.10.0030.00517.75
8.1.00.0060.00317.63
8.0.300.0070.00020.02
8.0.290.0050.00216.88
8.0.280.0030.00318.32
8.0.270.0030.00317.13
8.0.260.0030.00316.88
8.0.250.0000.00917.04
8.0.240.0040.00417.12
8.0.230.0030.00317.07
8.0.220.0030.00316.99
8.0.210.0040.00217.02
8.0.200.0040.00417.05
8.0.190.0040.00417.09
8.0.180.0080.00017.15
8.0.170.0060.00316.97
8.0.160.0000.00817.02
8.0.150.0000.00717.02
8.0.140.0100.00017.02
8.0.130.0060.00013.54
8.0.120.0050.00317.06
8.0.110.0040.00416.92
8.0.100.0050.00317.05
8.0.90.0030.00516.94
8.0.80.0100.00717.00
8.0.70.0030.00617.08
8.0.60.0000.00717.02
8.0.50.0040.00416.93
8.0.30.0090.00817.12
8.0.20.0130.00517.40
8.0.10.0070.00017.00
8.0.00.0070.01116.89
7.4.330.0080.00015.55
7.4.320.0040.00416.64
7.4.300.0000.00716.75
7.4.290.0050.00216.73
7.4.280.0080.00016.54
7.4.270.0030.00316.57
7.4.260.0080.00016.59
7.4.250.0000.00716.51
7.4.240.0030.00516.68
7.4.230.0070.00016.70
7.4.220.0000.00716.63
7.4.210.0050.00916.62
7.4.200.0000.00716.77
7.4.160.0080.00716.71
7.4.140.0070.01217.86
7.4.130.0140.01016.62
7.4.120.0090.01016.65
7.4.110.0110.01416.66
7.4.100.0070.01116.49
7.4.90.0090.00616.91
7.4.80.0070.01319.39
7.4.70.0130.00316.71
7.4.60.0150.00316.64
7.4.50.0070.00816.55
7.4.40.0040.01916.66
7.4.10.0130.00614.72
7.4.00.0070.01015.16
7.3.330.0040.00413.21
7.3.320.0070.00013.30
7.3.310.0030.00316.36
7.3.300.0040.00416.31
7.3.290.0030.00316.48
7.3.280.0090.00616.45
7.3.260.0110.00916.46
7.3.240.0080.01216.41
7.3.230.0040.01316.55
7.3.210.0120.00616.39
7.3.200.0130.00316.51
7.3.190.0060.01016.46
7.3.180.0090.00916.47
7.3.170.0100.00716.48
7.3.160.0030.01316.75
7.3.130.0070.00714.85
7.3.120.0110.00814.59
7.3.110.0110.00814.95
7.3.100.0080.00814.83
7.3.90.0060.00914.89
7.3.80.0110.00414.85
7.3.70.0080.00814.70
7.3.60.0030.01114.76
7.3.50.0030.00714.98
7.3.40.0050.00514.84
7.3.30.0080.00414.79
7.3.20.0080.00816.76
7.3.10.0070.00816.88
7.3.00.0060.00616.57
7.2.330.0120.00616.77
7.2.320.0110.01116.75
7.2.310.0090.01316.63
7.2.300.0110.00716.72
7.2.290.0070.01516.72
7.2.260.0070.00915.13
7.2.250.0100.00815.18
7.2.240.0030.01414.93
7.2.230.0080.00815.22
7.2.220.0110.00514.88
7.2.210.0060.00814.84
7.2.200.0060.00814.99
7.2.190.0030.01015.05
7.2.180.0020.01314.93
7.2.170.0100.00515.09
7.2.160.0030.01315.02
7.2.150.0000.01017.13
7.2.140.0070.01017.00
7.2.130.0040.01117.10
7.2.120.0070.00716.80
7.2.110.0030.01416.89
7.2.100.0070.00716.79
7.2.90.0070.00716.78
7.2.80.0030.00916.80
7.2.70.0070.00717.11
7.2.60.0080.00916.92
7.2.50.0050.00717.16
7.2.40.0030.01016.94
7.2.30.0140.01017.23
7.2.20.0120.00817.63
7.2.10.0120.01217.46
7.2.00.0110.00917.36
7.1.330.0030.00915.94
7.1.320.0040.00516.04
7.1.310.0070.00515.91
7.1.300.0100.00315.89
7.1.290.0100.00315.89
7.1.280.0030.01015.84
7.1.270.0060.00915.90
7.1.260.0090.00315.82
7.1.250.0000.01216.07
7.1.240.0120.00315.82
7.1.230.0110.00415.69
7.1.220.0030.01016.10
7.1.210.0030.00916.01
7.1.200.0050.00815.88
7.1.190.0070.00916.02
7.1.180.0030.00615.96
7.1.170.0120.00315.56
7.1.160.0080.00815.99
7.1.150.0100.01116.36
7.1.140.0080.01016.56
7.1.130.0090.01616.47
7.1.120.0120.00616.52
7.1.110.0110.00916.04
7.1.100.0090.01416.20
7.1.90.0150.00916.03
7.1.80.0080.01316.11
7.1.70.0120.00715.57
7.1.60.0190.01224.63
7.1.50.0260.01324.55
7.1.40.0240.01424.40
7.1.30.0260.01324.44
7.1.20.0570.01324.23
7.1.10.0060.01315.32
7.1.00.0210.00915.52
7.0.330.0070.00715.45
7.0.320.0030.01015.56
7.0.310.0040.01115.30
7.0.300.0040.01215.48
7.0.290.0070.00715.64
7.0.280.0030.01315.58
7.0.270.0070.00315.32
7.0.260.0000.01315.46
7.0.250.0100.00315.49
7.0.240.0030.01015.37
7.0.230.0090.00615.23
7.0.220.0090.00615.46
7.0.210.0070.00715.46
7.0.200.0100.00315.36
7.0.190.0000.01615.48
7.0.180.0030.00715.38
7.0.170.0000.01415.61
7.0.160.0040.00415.27
7.0.150.0070.00715.64
7.0.140.0060.00315.63
7.0.130.0000.00815.49
7.0.120.0080.00415.63
7.0.110.0060.00815.57
7.0.100.0110.00015.27
7.0.90.0110.00415.66
7.0.80.0040.01215.70
7.0.70.0040.01115.26
7.0.60.0010.01615.45
7.0.50.0030.00615.74
7.0.40.0030.01313.70
7.0.30.0040.00613.61
7.0.20.0060.00313.70
7.0.10.0030.01313.71
7.0.00.0050.00513.66
5.6.400.0000.01114.27
5.6.390.0030.01213.96
5.6.380.0000.01314.22
5.6.370.0030.01513.89
5.6.360.0060.00913.96
5.6.350.0130.00314.57
5.6.340.0120.00614.34
5.6.330.0090.00614.34
5.6.320.0130.00314.40
5.6.310.0030.00914.43
5.6.300.0030.01013.96
5.6.290.0030.01014.59
5.6.280.0060.00614.24
5.6.270.0030.00614.65
5.6.260.0040.00714.15
5.6.250.0070.00714.28
5.6.240.0080.01214.63
5.6.230.0070.01014.27
5.6.220.0030.01314.40
5.6.210.0090.00314.14
5.6.200.0110.00414.10
5.6.190.0080.00414.46
5.6.180.0060.00914.06
5.6.170.0030.01414.32
5.6.160.0100.00614.53
5.6.150.0070.01014.21
5.6.140.0070.00714.20
5.6.130.0080.00514.42
5.6.120.0040.01114.08
5.6.110.0030.01014.31
5.6.100.0040.00414.27
5.6.90.0120.00314.51
5.6.80.0040.00813.94
5.6.70.0030.01014.08
5.6.60.0040.01014.02
5.6.50.0060.00914.22
5.6.40.0030.01313.97
5.6.30.0040.00814.05
5.6.20.0090.00314.35
5.6.10.0040.01114.06
5.6.00.0040.01114.27

preferences:
123.09 ms | 403 KiB | 5 Q