3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '["http://www.elodiedetails.com/storage/01C91C41AFB1E9E491CCB750D86948330B2EFFA95C33849C0127E5557380AF8B/b1e48c712dd94cc2b91d2ced7e40f7c6/jpg/media/245df3634bd045b4bbf7bdb003e5ab1b/zip_go-desert-weaves-elodie-details_50610135582NA_3_1000px.jpg", "http://www.elodiedetails.com/storage/FEFED8E72F7F2B4B1D546FBB8D10A7298C963A1F141EA55EFABA5B29B316D924/877cb34feaaf4560967081ef63716b09/jpg/media/08db7d4521704b35866b10b5f445cd5b/store-my-stuff-wild-paris-elodie-details-SS20-lifestyle_70650128580NA_web.jpg"]'; // the "hard" way preg_match_all('/"([^"]+)"/', $string, $matches); var_dump($matches[1]); // the easy way var_dump(json_decode($string));
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.26, 8.4.1 - 8.4.13
array(2) { [0]=> string(240) "http://www.elodiedetails.com/storage/01C91C41AFB1E9E491CCB750D86948330B2EFFA95C33849C0127E5557380AF8B/b1e48c712dd94cc2b91d2ced7e40f7c6/jpg/media/245df3634bd045b4bbf7bdb003e5ab1b/zip_go-desert-weaves-elodie-details_50610135582NA_3_1000px.jpg" [1]=> string(255) "http://www.elodiedetails.com/storage/FEFED8E72F7F2B4B1D546FBB8D10A7298C963A1F141EA55EFABA5B29B316D924/877cb34feaaf4560967081ef63716b09/jpg/media/08db7d4521704b35866b10b5f445cd5b/store-my-stuff-wild-paris-elodie-details-SS20-lifestyle_70650128580NA_web.jpg" } array(2) { [0]=> string(240) "http://www.elodiedetails.com/storage/01C91C41AFB1E9E491CCB750D86948330B2EFFA95C33849C0127E5557380AF8B/b1e48c712dd94cc2b91d2ced7e40f7c6/jpg/media/245df3634bd045b4bbf7bdb003e5ab1b/zip_go-desert-weaves-elodie-details_50610135582NA_3_1000px.jpg" [1]=> string(255) "http://www.elodiedetails.com/storage/FEFED8E72F7F2B4B1D546FBB8D10A7298C963A1F141EA55EFABA5B29B316D924/877cb34feaaf4560967081ef63716b09/jpg/media/08db7d4521704b35866b10b5f445cd5b/store-my-stuff-wild-paris-elodie-details-SS20-lifestyle_70650128580NA_web.jpg" }

preferences:
151.28 ms | 411 KiB | 5 Q