3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "<p><img src=\"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxISEBUSEhAVFRUVFQ8VFRUVEA8VEBUPFRUWFhUVFRUYHSggGBolHRUVITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OFxAQGi0eHx8tLS0tLS0tKy0vKy0tLS0tLS0tLS0tLy0tLS0tLSstLS0tLS0tLS0tKy0rLS0rLS0rK//AABEIALcBEwMBIgACEQEDEQH/xAAbAAACAwEBAQAAAAAAAAAAAAACAwABBAUGB//EADcQAAICAQIDBQYEBgIDAAAAAAABAhEDBCESMUFRYXGBkQUTFCKhsULB0fAyUmJy4fEGojOCkv/EABoBAAMBAQEBAAAAAAAAAAAAAAABAgMEBQb/xAApEQACAgICAgEEAAcAAAAAAAAAAQIRAyESMQQTQRQiUWEyUoGh4fDx/9oADAMBAAIRAxEAPwD5nMUxkmKkdh5MQJC2HIFsRqgS6IEgGQtIlBIYmQoIECSFohaQxloKi0i6GIGg0ig0gEXFBxREg4oDRESCUQoxGRiAwVENQGQgHGIwsU4g8I+cQVEB2AomnToWoj8C3AjI9HRxR2KURuOPyhKBrejwPInTozS5mvSZDJlW4emdMhmM4XCzuQybC9RlpCFlMupz2ZxRx48LlKkIzTtmaQcpAUW2fRePgUIgNMhdFiOrieXkLkHJi2ZjQEgAmQDRFUWQsALRaKQQyWRlEZaACBwiCMxoYBLkVQxIFgAKDigUh0IgNIKMRsYlxgNjEBtgxiMjEtRGwgBLkVGI2MAoQHQgUYvJRmyRBUR+SJSgI0U9ClEfijuUoj8UQInk0bcS2GuOwOFDsipFTlR85lnc2c3JzJjdEZBWd0cfKCQx5BM5AtlMVnbg8eMCiFpF0B1FUQuiDA8gwJBSBZkWgCFlgUVRCyDERFkLARQSIkEhgUOxxAih8EAMlAMdJCpANFRRqxxE4VubcMAQN0XGI6MS4wGxiM5p5UgFEbGJSiacWKwRy5fJpAwgOjjNGLAaHg2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tcWy7qELJFv5oxve+f2LISzWKVsv4Xs4fJNP1Bek4VtOS89iyA0R7JXRax5NuHLfiv8BvPOC+aKfen+RCDrVhF8pcWiL2lHsf0IQhHNnV9LjP/2Q==\" style=\"width: 275px;\"></p><p>This is a good post</p>"; preg_match("/\"data:image\/(gif|jpg|jpeg|tiff|png);base64,.*\"/", $html, $matches, PREG_OFFSET_CAPTURE); print_r($matches);

Abusive script

This script was stopped while abusing our resources

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.110.0000.00820.94
8.3.100.0040.00424.06
8.3.90.0090.00026.77
8.3.80.0050.00518.31
8.3.70.0060.00916.75
8.3.60.0110.01118.43
8.3.50.0120.00318.27
8.3.40.0130.00318.84
8.3.30.0090.00618.84
8.3.20.0030.00518.85
8.3.10.0040.00420.82
8.3.00.0050.00323.66
8.2.230.0040.00722.58
8.2.220.0130.00337.54
8.2.210.0070.01126.77
8.2.200.0030.00616.63
8.2.190.0090.00916.88
8.2.180.0090.00918.18
8.2.170.0070.00722.96
8.2.160.0060.00920.57
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00019.73
8.2.120.0040.00426.16
8.2.110.0060.00322.42
8.2.100.0040.00817.91
8.2.90.0060.00318.12
8.2.80.0050.00317.97
8.2.70.0000.00817.93
8.2.60.0050.00318.03
8.2.50.0000.00818.10
8.2.40.0000.00819.48
8.2.30.0000.00719.49
8.2.20.0030.00617.93
8.2.10.0040.00418.09
8.2.00.0000.00719.54
8.1.290.0060.00330.84
8.1.280.0030.01325.92
8.1.270.0190.00022.12
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00622.05
8.1.230.0040.00720.88
8.1.220.0080.00017.78
8.1.210.0040.00418.77
8.1.200.0030.00617.47
8.1.190.0050.00317.48
8.1.180.0050.00318.10
8.1.170.0050.00317.77
8.1.160.0040.00418.73
8.1.150.0000.00718.80
8.1.140.0000.00717.69
8.1.130.0070.00020.89
8.1.120.0030.00517.51
8.1.110.0040.00417.58
8.1.100.0090.00317.61
8.1.90.0040.00417.47
8.1.80.0040.00417.55
8.1.70.0000.00817.46
8.1.60.0080.00017.72
8.1.50.0040.00417.64
8.1.40.0030.00617.63
8.1.30.0050.00317.61
8.1.20.0000.00817.77
8.1.10.0050.00317.71
8.1.00.0040.00417.64
8.0.300.0000.00719.77
8.0.290.0040.00416.88
8.0.280.0000.00718.42
8.0.270.0030.00316.93
8.0.260.0030.00517.22
8.0.250.0100.00016.98
8.0.240.0050.00217.06
8.0.230.0050.00317.04
8.0.220.0030.00517.00
8.0.210.0000.00716.91
8.0.200.0030.00317.11
8.0.190.0000.00717.05
8.0.180.0040.00416.95
8.0.170.0080.00017.02
8.0.160.0040.00417.02
8.0.150.0000.00716.94
8.0.140.0030.00416.98
8.0.130.0000.00613.38
8.0.120.0040.00417.00
8.0.110.0000.00917.03
8.0.100.0040.00416.93
8.0.90.0040.00416.79
8.0.80.0050.01017.02
8.0.70.0040.00417.02
8.0.60.0030.00517.00
8.0.50.0070.00016.77
8.0.30.0120.00517.30
8.0.20.0080.01217.40
8.0.10.0040.00416.97
8.0.00.0080.01016.86
7.4.330.0030.00315.55
7.4.320.0040.00416.76
7.4.300.0000.00716.76
7.4.290.0030.00316.57
7.4.280.0040.00416.68
7.4.270.0000.00716.68
7.4.260.0000.00716.71
7.4.250.0000.00716.74
7.4.240.0000.00816.69
7.4.230.0000.00716.61
7.4.220.0060.00316.71
7.4.210.0050.01116.66
7.4.200.0000.00716.78
7.4.160.0090.01016.67
7.4.140.0120.00817.86
7.4.130.0040.01516.80
7.4.120.0100.01116.63
7.4.110.0090.00916.44
7.4.100.0140.00316.79
7.4.90.0130.00316.70
7.4.80.0150.00919.39
7.4.70.0100.00716.82
7.4.60.0110.00616.84
7.4.50.0090.00616.44
7.4.40.0090.01316.63
7.4.00.0000.01315.10
7.3.330.0000.00513.04
7.3.320.0030.00313.22
7.3.310.0060.00316.29
7.3.300.0070.00016.26
7.3.290.0000.00716.36
7.3.280.0090.00616.38
7.3.260.0110.00916.37
7.3.240.0100.01016.54
7.3.230.0060.01016.52
7.3.210.0070.01016.52
7.3.200.0060.01016.21
7.3.190.0160.00016.61
7.3.180.0090.00616.31
7.3.170.0130.00716.29
7.3.160.0100.00616.57
7.2.330.0180.00016.51
7.2.320.0150.00916.66
7.2.310.0080.01116.63
7.2.300.0150.00316.45
7.2.290.0130.00716.84
7.2.60.0340.00615.08
7.2.50.0330.00714.75
7.2.40.0480.00315.12
7.2.30.0320.00814.91
7.2.20.0340.00314.84
7.2.10.0430.01814.98
7.2.00.0340.00814.84
7.1.200.0030.00915.82
7.1.170.0290.00713.89
7.1.160.0400.00914.03
7.1.150.0400.00414.09
7.1.140.0320.00814.05
7.1.130.0530.00313.94
7.1.120.0300.01314.05
7.1.110.0330.00914.00
7.1.100.0340.00714.14
7.1.90.0570.01314.03
7.1.80.0550.00613.57
7.1.70.0430.00713.80
7.1.60.0660.00631.52
7.1.50.0780.01631.68
7.1.40.0700.00931.66
7.1.30.2400.00331.79
7.1.20.0750.00731.68
7.1.10.0480.01213.67
7.1.00.0420.00313.65

preferences:
62.29 ms | 403 KiB | 5 Q