3v4l.org

run code in 300+ PHP versions simultaneously
<?php $help_path = 'http:xxx.com/wp-content/help/'; $contents = <<<MYVAR <img src="../Links/WAS_PIC_ControlBox-1-2-3.jpg" alt="WAS-Betjeningsboks-1-2-3" style="border: none; margin-left: 20px; margin-right: 0px; margin-top: 0px; margin-bottom: 0px;" border="0"> <script type="text/javascript" src="../ehlpdhtm.js"></script> MYVAR; $find = array( '#<script\s+type="(.*?)"\s+src="(?:\.{2}/)?(.*?)">(.*?)</script>#is', '#<img\s+src="(?:\.{2}/)?(.*?)"\s+alt="(.*?)"([^>]*?)/?>#i' ); $replace = array( '<script type="${1}" src="' . $help_path . '${2}"></script>', '<img src="' . $help_path . '${1}" alt="${2}"${3} />' ); $preg_rep = preg_replace($find, $replace, $contents); print_r($preg_rep);

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.5.10.0110.00616.73
8.5.00.0160.00920.39
8.4.150.0030.00014.05
8.4.140.0140.00617.81
8.4.130.0030.00518.07
8.4.120.0090.00922.47
8.4.110.0080.01120.66
8.4.100.0050.00418.07
8.4.90.0120.00818.61
8.4.80.0100.00917.96
8.4.70.0100.00818.34
8.4.60.0090.00718.83
8.4.50.0080.00120.48
8.4.40.0130.00717.86
8.4.30.0160.00320.75
8.4.20.0090.01220.53
8.4.10.0060.00317.96
8.3.280.0080.01218.61
8.3.270.0180.00716.69
8.3.260.0130.00716.89
8.3.250.0100.00918.89
8.3.240.0140.00516.50
8.3.230.0120.00717.10
8.3.220.0040.00417.18
8.3.210.0100.00518.58
8.3.200.0060.00316.85
8.3.190.0100.00917.29
8.3.180.0100.00918.90
8.3.170.0090.00917.26
8.3.160.0150.00320.31
8.3.150.0090.00918.29
8.3.140.0180.00017.30
8.3.130.0000.00918.49
8.3.120.0060.00319.23
8.3.110.0060.00320.94
8.3.100.0030.00616.86
8.3.90.0040.00418.50
8.3.80.0000.01118.55
8.3.70.0110.00416.74
8.3.60.0040.01218.68
8.3.50.0080.00517.70
8.3.40.0110.00418.96
8.3.30.0110.00418.92
8.3.20.0090.00020.77
8.3.10.0060.00323.61
8.3.00.0000.00820.95
8.2.290.0100.00720.82
8.2.280.0120.00718.83
8.2.270.0090.00916.99
8.2.260.0060.01216.87
8.2.250.0080.00016.64
8.2.240.0030.00619.15
8.2.230.0090.00022.58
8.2.220.0110.00024.06
8.2.210.0040.00426.77
8.2.200.0050.00518.54
8.2.190.0090.00617.00
8.2.180.0110.00418.54
8.2.170.0100.01022.96
8.2.160.0030.01020.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0060.00320.96
8.2.110.0090.00019.16
8.2.100.0080.00418.03
8.2.90.0000.00918.16
8.2.80.0060.00319.48
8.2.70.0080.00017.75
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0060.00318.13
8.2.30.0080.00018.24
8.2.20.0000.00818.06
8.2.10.0050.00219.50
8.2.00.0040.00418.29
8.1.330.0110.01021.86
8.1.320.0160.00416.32
8.1.310.0070.00718.50
8.1.300.0040.00718.19
8.1.290.0060.00318.88
8.1.280.0070.00725.92
8.1.270.0000.00820.41
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0070.00319.53
8.1.230.0040.00820.99
8.1.220.0080.00017.77
8.1.210.0000.00818.91
8.1.200.0030.00617.60
8.1.190.0030.00617.48
8.1.180.0080.00018.10
8.1.170.0040.00419.09
8.1.160.0040.00419.01
8.1.150.0000.00718.83
8.1.140.0040.00419.03
8.1.130.0040.00417.56
8.1.120.0060.00317.61
8.1.110.0000.01217.68
8.1.100.0050.00217.54
8.1.90.0040.00417.61
8.1.80.0000.00817.63
8.1.70.0030.00617.51
8.1.60.0060.00317.69
8.1.50.0040.00817.69
8.1.40.0040.00417.76
8.1.30.0040.00417.67
8.1.20.0000.00817.68
8.1.10.0000.00717.69
8.1.00.0030.00617.56
8.0.300.0040.00420.15
8.0.290.0080.00017.00
8.0.280.0000.00718.39
8.0.270.0040.00417.03
8.0.260.0030.00316.99
8.0.250.0040.00417.11
8.0.240.0030.00317.23
8.0.230.0040.00417.21
8.0.220.0030.00517.04
8.0.210.0020.00517.16
8.0.200.0060.00017.19
8.0.190.0040.00417.10
8.0.180.0040.00417.18
8.0.170.0000.00817.11
8.0.160.0020.00517.08
8.0.150.0000.00817.04
8.0.140.0030.00317.02
8.0.130.0030.00313.57
8.0.120.0050.00317.03
8.0.110.0040.00416.99
8.0.100.0040.00417.21
8.0.90.0050.00217.13
8.0.80.0130.00317.20
8.0.70.0000.00717.00
8.0.60.0000.00717.16
8.0.50.0040.00417.17
8.0.30.0100.01017.32
8.0.20.0130.00417.39
8.0.10.0000.00817.27
8.0.00.0110.00816.96
7.4.330.0000.00616.69
7.4.320.0080.00016.68
7.4.300.0050.00316.81
7.4.290.0040.00416.74
7.4.280.0000.00816.85
7.4.270.0040.00416.68
7.4.260.0040.00416.81
7.4.250.0030.00516.71
7.4.240.0030.00316.79
7.4.230.0040.00416.67
7.4.220.0040.00416.96
7.4.210.0080.00816.74
7.4.200.0030.00316.83
7.4.160.0100.00616.73
7.4.130.0090.00916.66
7.4.120.0080.00916.73
7.4.110.0070.01016.80
7.4.100.0070.01016.55
7.4.90.0060.01216.86
7.4.80.0090.00819.39
7.4.70.0120.00616.81
7.4.60.0100.01016.58
7.4.50.0090.00616.83
7.4.40.0140.01016.89
7.4.00.0130.00315.39
7.3.330.0060.00013.39
7.3.320.0030.00313.39
7.3.310.0000.00716.58
7.3.300.0000.00716.48
7.3.290.0000.00716.38
7.3.280.0050.01116.48
7.3.260.0070.01216.56
7.3.240.0090.01016.58
7.3.230.0090.00916.73
7.3.210.0070.01016.62
7.3.200.0030.01316.71
7.3.190.0100.00616.65
7.3.180.0150.00516.72
7.3.170.0060.01016.59
7.3.160.0090.00616.66
7.3.40.0090.00814.90
7.3.30.0090.00614.79
7.3.20.0040.00816.82
7.3.10.0090.00316.60
7.3.00.0120.01216.65
7.2.330.0090.00916.78
7.2.320.0120.00916.66
7.2.310.0060.01016.60
7.2.300.0090.00916.73
7.2.290.0160.01016.77
7.2.170.0030.01014.78
7.2.160.0050.01115.15
7.2.150.0040.00817.14
7.2.140.0040.01817.04
7.2.130.0040.01117.01
7.2.120.0130.01016.84
7.2.110.0110.01017.19
7.2.100.0140.00716.92
7.2.90.0130.00817.10
7.2.80.0030.00916.97
7.2.70.0110.00016.81
7.2.60.0030.01017.06
7.2.50.0100.00717.01
7.2.40.0090.01217.21
7.2.30.0090.00917.09
7.2.20.0030.01116.79
7.2.10.0070.00716.96
7.2.00.0070.00717.20
7.1.280.0120.00915.77
7.1.270.0060.00815.58
7.1.260.0100.00715.91
7.1.250.0120.01115.55

preferences:
20.35 ms | 403 KiB | 5 Q