3v4l.org

run code in 300+ PHP versions simultaneously
<?php $post = 'Registrazioni uguale informazioni, che passano anche dai server cloud di Amazon che elaborano le richieste dei singoli utilizzatori, “imparando” anche a venirgli incontro. <img class="aligncenter imgBig100 model" src="http://startupitalia.eu/wp-content/uploads/2017/02/fanceat1.jpeg" alt="" /> 1 Il problema è che, come ogni tecnologia, non è perfetta e spesso vengono registrate e inviate ai server di Amazon parole e informazioni all’insaputa dell’utente. <img class="aligncenter2 size-full wp-image-69194" src="http://startupitalia.eu/wp-content/uploads/2017/02/fanceat2.jpeg" alt="" /> 2 Il problema è che, come ogni tecnologia, non è perfetta e spesso vengono registrate e inviate ai server di Amazon parole e informazioni all’insaputa dell’utente. <img class="aligncenter size-full wp-image-69194" src="http://startupitalia.eu/wp-content/uploads/2017/02/fanceat3.jpeg" alt="" /> 3 Il problema è che, come ogni tecnologia, non è perfetta e spesso vengono registrate e inviate ai server di Amazon parole e informazioni all’insaputa dell’utente. <img class="aligncenter imgBig100 model" src="http://startupitalia.eu/wp-content/uploads/2017/02/img2.jpeg" alt="" />'; preg_match_all('/(<img\b[^>]+\bclass="?[^>"]*\bimgBig100\b.*?>)/', $post, $img_tag); // print_r($img_tag[1]); // echo "\n\n\n"; $contentReplaced = $post; foreach($img_tag[1] as $imgToChange) { /* preg_match_all('/(<img\b[^>]+\bsrc="?[^>"].*?>)/', $imgToChange, $img_src); */ $xpath = new DOMXPath(@DOMDocument::loadHTML($imgToChange)); $src = $xpath->evaluate("string(//img/@src)"); print_r($src); echo "\n --- \n"; $newelement = '<figure class="full-widthCont"><div style="background:url('.$src.')"></div></figure>'; echo "\n $newelement \n"; $contentReplaced = str_replace($imgToChange, $newelement, $contentReplaced); echo "$contentReplaced \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.60.0110.00718.43
8.3.50.0100.00718.30
8.3.40.0100.01018.94
8.3.30.0030.01718.93
8.3.20.0090.00920.16
8.3.10.0090.00621.77
8.3.00.0060.01221.73
8.2.180.0140.00718.91
8.2.170.0100.00722.96
8.2.160.0070.01019.50
8.2.150.0120.00624.18
8.2.140.0070.01124.66
8.2.130.0050.00322.21
8.2.120.0060.00326.35
8.2.110.0100.01321.17
8.2.100.0090.00318.22
8.2.90.0000.00819.17
8.2.80.0030.00517.97
8.2.70.0090.00017.88
8.2.60.0040.00418.04
8.2.50.0030.00618.10
8.2.40.0020.00520.60
8.2.30.0000.00719.40
8.2.20.0000.00718.20
8.2.10.0000.00718.32
8.2.00.0030.00618.30
8.1.280.0150.00625.92
8.1.270.0060.01220.79
8.1.260.0110.00426.35
8.1.250.0070.01128.09
8.1.240.0060.00617.61
8.1.230.0030.00717.89
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.47
8.1.190.0090.00017.22
8.1.180.0000.00818.10
8.1.170.0060.00318.65
8.1.160.0080.00018.83
8.1.150.0050.00221.95
8.1.140.0040.00419.52
8.1.130.0000.00718.88
8.1.120.0030.00617.53
8.1.110.0050.00217.48
8.1.100.0040.00417.51
8.1.90.0030.00617.51
8.1.80.0050.00317.59
8.1.70.0000.00717.52
8.1.60.0080.00017.72
8.1.50.0000.00817.66
8.1.40.0000.00917.64
8.1.30.0050.00317.85
8.1.20.0080.00017.82
8.1.10.0080.00017.74
8.1.00.0000.00817.64
8.0.300.0070.00018.77
8.0.290.0080.00016.75
8.0.280.0030.00318.45
8.0.270.0030.00317.24
8.0.260.0000.00717.20
8.0.250.0070.00017.16
8.0.240.0000.00817.20
8.0.230.0050.00317.06
8.0.220.0040.00417.14
8.0.210.0050.00317.15
8.0.200.0030.00317.18
8.0.190.0030.00717.20
8.0.180.0000.00717.12
8.0.170.0040.00417.14
8.0.160.0000.00717.13
8.0.150.0080.00017.11
8.0.140.0040.00417.04
8.0.130.0060.00013.46
8.0.120.0000.00717.13
8.0.110.0040.00417.22
8.0.100.0000.00817.17
8.0.90.0000.00716.99
8.0.80.0060.00917.06
8.0.70.0030.00617.17
8.0.60.0000.00817.05
8.0.50.0000.00717.06
8.0.30.0100.00817.20
8.0.20.0140.00617.44
8.0.10.0040.00417.22
8.0.00.0030.01416.95
7.4.330.0020.00215.55
7.4.320.0030.00317.17
7.4.300.0060.00017.14
7.4.290.0080.00417.11
7.4.280.0000.00816.91
7.4.270.0000.00717.11
7.4.260.0000.00717.04
7.4.250.0000.00717.01
7.4.240.0040.00417.03
7.4.230.0030.00517.03
7.4.220.0060.01217.01
7.4.210.0040.01116.93
7.4.200.0070.00016.93
7.4.160.0100.01117.08
7.4.150.0140.00417.40
7.4.140.0110.01017.86
7.4.130.0090.00917.13
7.4.120.0090.01117.13
7.4.110.0030.01417.13
7.4.100.0130.00417.00
7.4.90.0070.01117.04
7.4.80.0000.01719.39
7.4.70.0110.00617.23
7.4.60.0040.01417.02
7.4.50.0000.01417.11
7.4.40.0080.00817.00
7.4.30.0070.01116.93
7.4.00.0040.01415.26
7.3.330.0050.00013.71
7.3.320.0050.00013.57
7.3.310.0040.00416.93
7.3.300.0030.00316.77
7.3.290.0060.00916.89
7.3.280.0090.00916.88
7.3.270.0140.00317.40
7.3.260.0120.00817.12
7.3.250.0090.01116.87
7.3.240.0100.00917.10
7.3.230.0070.01017.05
7.3.210.0080.01016.90
7.3.200.0190.00017.21
7.3.190.0040.01317.16
7.3.180.0120.00516.91
7.3.170.0100.00617.03
7.3.160.0100.00917.02
7.3.120.0090.01015.13
7.3.110.0040.01215.13
7.3.100.0050.01315.30
7.3.90.0100.00615.08
7.3.80.0100.00715.19
7.3.70.0060.00515.36
7.3.60.0040.01115.06
7.3.50.0030.01214.99
7.3.40.0050.00815.28
7.3.30.0080.00715.20
7.3.20.0040.00917.10
7.3.10.0070.00817.07
7.3.00.0080.00817.04
7.2.330.0130.01217.20
7.2.320.0100.01317.18
7.2.310.0000.02217.00
7.2.300.0130.00617.22
7.2.290.0100.01317.31
7.2.250.0090.00715.51
7.2.240.0030.01515.64
7.2.230.0000.01715.40
7.2.220.0110.00515.43
7.2.210.0040.01115.25
7.2.200.0080.00515.36
7.2.190.0080.00515.40
7.2.180.0060.00615.28
7.2.170.0070.00515.39
7.2.160.0100.01015.41
7.2.150.0060.00917.06
7.2.140.0030.01317.29
7.2.130.0040.00717.28
7.2.120.0110.00717.03
7.2.110.0140.00417.13
7.2.100.0030.00717.26
7.2.90.0060.00617.42
7.2.80.0090.00617.27
7.2.70.0040.01217.25
7.2.60.0080.00617.36
7.2.50.0070.00417.22
7.2.40.0070.00717.49
7.2.30.0040.01117.28
7.2.20.0070.00717.30
7.2.10.0090.00617.13
7.2.00.0030.01317.21
7.1.330.0050.01116.18
7.1.320.0040.01116.23
7.1.310.0060.00916.26
7.1.300.0070.00816.15
7.1.290.0050.00816.07
7.1.280.0070.00416.21
7.1.270.0100.00616.16
7.1.260.0090.00516.19
7.1.250.0140.00015.95
7.1.240.0070.01015.96
7.1.230.0040.01116.18
7.1.220.0070.00416.27
7.1.210.0100.00716.19
7.1.200.0050.00716.02
7.1.190.0070.00716.25
7.1.180.0040.00715.89
7.1.170.0030.01316.01
7.1.160.0060.00616.38
7.1.150.0040.01016.26
7.1.140.0060.00316.04
7.1.130.0030.00915.93
7.1.120.0000.01716.23
7.1.110.0040.00816.00
7.1.100.0090.00016.28
7.1.90.0070.00716.36
7.1.80.0030.00616.14
7.1.70.0050.00516.78
7.1.60.0080.00116.81
7.1.50.0050.01216.62
7.1.40.0030.00616.21
7.1.30.0120.01025.25
7.1.20.0120.00925.50
7.1.10.0030.01316.53
7.1.00.0030.01016.47
7.0.330.0040.01115.88
7.0.320.0100.00616.00
7.0.310.0040.00815.56
7.0.300.0030.00615.77
7.0.290.0040.00515.91
7.0.280.0000.00815.94
7.0.270.0100.00315.66
7.0.260.0100.00715.80
7.0.250.0040.00715.87
7.0.240.0040.00415.84
7.0.230.0040.00715.65
7.0.220.0070.00415.70
7.0.210.0060.00315.45
7.0.200.0060.00716.30
7.0.190.0000.00915.55
7.0.180.0060.01015.79
7.0.170.0020.01016.09
7.0.160.0070.00716.16
7.0.150.0040.01116.34
7.0.140.0070.00516.06
7.0.130.0040.00916.38
7.0.120.0020.01116.39
7.0.110.0030.01116.37
7.0.100.0070.00716.12
7.0.90.0080.00516.21
7.0.80.0080.00816.33
7.0.70.0030.01016.26
7.0.60.0030.01016.16
7.0.50.0070.00716.24
7.0.40.0080.00515.16
7.0.30.0080.00515.33
7.0.20.0070.00515.24
7.0.10.0020.01015.22
7.0.00.0050.00815.21
5.6.400.0000.01214.86
5.6.390.0000.01515.13
5.6.380.0040.01414.59
5.6.370.0070.00714.27
5.6.360.0030.01014.25
5.6.350.0030.00914.88
5.6.340.0090.00014.98
5.6.330.0070.01115.04
5.6.320.0000.00914.66
5.6.310.0070.00714.77
5.6.300.0070.01114.80
5.6.290.0030.00614.61
5.6.280.0080.00414.72
5.6.270.0030.00614.83
5.6.260.0030.00714.58
5.6.250.0090.00314.50
5.6.240.0040.01114.62
5.6.230.0000.01414.60
5.6.220.0000.01414.99
5.6.210.0060.00314.50
5.6.200.0080.00814.57
5.6.190.0040.01114.65
5.6.180.0000.01614.57
5.6.170.0150.00614.45
5.6.160.0090.01214.61
5.6.150.0100.00314.97
5.6.140.0090.00614.62
5.6.130.0140.00014.49
5.6.120.0000.00914.67
5.6.110.0070.00314.34
5.6.100.0070.01014.69
5.6.90.0030.01414.55
5.6.80.0000.01314.77
5.6.70.0040.01214.30
5.6.60.0030.01214.48
5.6.50.0030.01214.55
5.6.40.0070.00314.68
5.6.30.0070.00714.89
5.6.20.0100.00314.37
5.6.10.0030.01214.71
5.6.00.0110.00314.48

preferences:
62.01 ms | 401 KiB | 5 Q