3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<JSON [{"eventID":152913573,"template":"Brisbane City Council","title":"Clock Tower Tour","description":"The Clock Tour Tower is a &#8216;must-do&#8217; for anyone and everyone in Brisbane!<br /> <br /> For many years, City Hall&#8217;s Clock Tower made the building the tallest in Brisbane, offering visitors a magnificent 360 degree view of the city around them. Whilst the view has changed significantly over the last 90 years, the time-honoured tradition of &#8220;taking a trip up the tower&#8221; happily continues at Museum of Brisbane.<br /> <br /> The Clock Tower Tour includes a ride in one of Brisbane&#8217;s oldest working cage lifts, a look behind Australia&#8217;s largest analogue clock faces and time to explore the observation platform that shares a unique perspective of the city. See if you can catch a glimpse of the bells!<br /> <br /> <strong>Location</strong>: Tour begins from Museum of Brisbane reception on Level 3 of City Hall.","location":"Museum of Brisbane, Brisbane City","webLink":"","startDateTime":"2021-06-13T00:00:00","endDateTime":"2021-06-14T00:00:00","dateTimeFormatted":"Sunday, June 13, 2021","allDay":true,"startTimeZoneOffset":"+1000","endTimeZoneOffset":"+1000","canceled":false,"openSignUp":false,"reservationFull":false,"pastDeadline":false,"requiresPayment":false,"refundsAllowed":false,"waitingListAvailable":false,"signUpUrl":"https://eventactions.com/eareg.aspx?ea=Rsvp&invite=0tva7etjn38te1bve2yj59425pupt7wvscmr1z6depcj9ctnrh7r","repeatingRegistration":0,"repeats":"Every Sunday, Tuesday, Wednesday, Thursday, Friday and Saturday through June 30, 2021","seriesID":152913560,"eventImage":{"url":"https://www.trumba.com/i/DgDhxtvzZEBEz%2AjAEUDofPUE.jpeg","size":{"width":1290,"height":775}},"detailImage":{"url":"https://www.trumba.com/i/DgDhxtvzZEBEz%2AjAEUDofPUE.jpeg","size":{"width":1290,"height":775}},"customFields":[{"fieldID":22503,"label":"Venue","value":"Museum of Brisbane, Brisbane City","type":17},{"fieldID":22505,"label":"Venue address","value":"<a href=\"http://maps.google.com/?q=-27.4693454,153.0216909(Museum+of+Brisbane%2c+Brisbane+City)\" target=\"_blank\" rel=\"noopener\">Museum of Brisbane, Brisbane City Hall, 64 Adelaide Street, Brisbane City</a>","type":9},{"fieldID":21859,"label":"Event type","value":"Family events, Free","type":17},{"fieldID":22177,"label":"Cost","value":"Free","type":0},{"fieldID":23562,"label":"Age","value":"Suitable for all ages","type":0},{"fieldID":22732,"label":"Bookings","value":"Book via the <a href=\"https://www.museumofbrisbane.com.au/whats-on/clock-tower-tour/\" target=\"_blank\" rel=\"noopener\">Museum of Brisbane website</a>.","type":1},{"fieldID":51540,"label":"Bookings required","value":"Yes","type":3}],"permaLinkUrl":"https://www.brisbane.qld.gov.au/trumba?trumbaEmbed=view%3devent%26eventid%3d152913573","eventActionUrl":"https://eventactions.com/eventactions/brisbane-city-council#/actions/cvuzsak1g2d45mndcjwkp24nfw","categoryCalendar":"Brisbane's calendar|Museum of Brisbane","registrationTransferTargetCount":0,"regAllowChanges":true}] JSON; $decode = json_decode($json); foreach ($decode as $event) { foreach ($event->customFields as $field) { if ($field->type == 9) { echo $field->value."\n"; if (preg_match('/href="(.*?)"/', $field->value, $matches)){ preg_match('/q=([\-\.0-9]*),([\-\.0-9]*)/',$matches[1], $latlong); array_shift($latlong); var_dump($latlong); } break; } } }

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.0130.00920.36
8.4.110.0030.00522.57
8.4.100.0040.00717.59
8.4.90.0130.00920.49
8.4.80.0060.00418.09
8.4.70.0090.01118.04
8.4.60.0120.01020.54
8.4.50.0100.00618.71
8.4.40.0070.01319.60
8.4.30.0100.00018.71
8.4.20.0100.01018.82
8.4.10.0060.00318.73
8.3.250.0130.00618.85
8.3.240.0110.00916.65
8.3.230.0040.00716.71
8.3.220.0030.00618.96
8.3.210.0040.00518.47
8.3.200.0060.00316.45
8.3.190.0050.00317.18
8.3.180.0110.00818.86
8.3.170.0030.01517.32
8.3.160.0120.00318.32
8.3.150.0110.00416.55
8.3.140.0000.00817.00
8.3.130.0080.00018.69
8.3.120.0060.00319.23
8.3.110.0040.00420.94
8.3.100.0100.00716.63
8.3.90.0030.00626.77
8.3.80.0100.00016.50
8.3.70.0120.00318.55
8.3.60.0000.01518.55
8.3.50.0060.00918.14
8.3.40.0150.00420.41
8.3.30.0060.00919.06
8.3.20.0000.00924.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.290.0120.00922.27
8.2.280.0140.00518.83
8.2.270.0120.00616.78
8.2.260.0030.00617.31
8.2.250.0030.00518.56
8.2.240.0100.00717.39
8.2.230.0200.00022.58
8.2.220.0050.00324.06
8.2.210.0100.00026.77
8.2.200.0030.00716.63
8.2.190.0090.01216.75
8.2.180.0180.00425.92
8.2.170.0110.00319.13
8.2.160.0140.00022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00420.08
8.2.110.0130.00322.43
8.2.100.0060.00617.85
8.2.90.0060.00317.75
8.2.80.0000.00818.91
8.2.70.0000.00917.88
8.2.60.0110.00018.16
8.2.50.0030.00518.07
8.2.40.0050.00320.07
8.2.30.0090.00018.19
8.2.20.0080.00018.05
8.2.10.0040.00421.12
8.2.00.0000.00719.30
8.1.330.0060.00321.96
8.1.320.0150.00417.91
8.1.310.0140.00418.38
8.1.300.0130.00618.11
8.1.290.0050.00530.84
8.1.280.0120.00625.92
8.1.270.0040.00423.99
8.1.260.0030.00626.35
8.1.250.0030.00528.09
8.1.240.0000.01020.60
8.1.230.0060.00617.95
8.1.220.0000.00817.78
8.1.210.0080.00018.77
8.1.200.0060.00317.47
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0030.00518.89
8.1.160.0050.00218.89
8.1.150.0000.00718.92
8.1.140.0000.00818.95
8.1.130.0000.00717.60
8.1.120.0040.00317.54
8.1.110.0050.00317.72
8.1.100.0060.00317.64
8.1.90.0030.00617.62
8.1.80.0050.00317.67
8.1.70.0040.00417.62
8.1.60.0030.00617.71
8.1.50.0080.00017.72
8.1.40.0000.00817.70
8.1.30.0060.00617.74
8.1.20.0040.00417.79
8.1.10.0000.00917.79
8.1.00.0040.00417.58
8.0.300.0060.00319.02
8.0.290.0060.00317.00
8.0.280.0000.00718.36
8.0.270.0000.00718.13
8.0.260.0000.00717.06
8.0.250.0050.00317.18
8.0.240.0040.00417.21
8.0.230.0030.00317.04
8.0.220.0070.00017.13
8.0.210.0000.00717.02
8.0.200.0000.00717.16
8.0.190.0000.00817.20
8.0.180.0040.00417.25
8.0.170.0040.00917.04
8.0.160.0060.00317.17
8.0.150.0040.00417.19
8.0.140.0040.00417.12
8.0.130.0060.00013.56
8.0.120.0030.00617.05
8.0.110.0000.00817.06
8.0.100.0040.00417.20
8.0.90.0050.00216.98
8.0.80.0030.01417.17
8.0.70.0090.00917.03
8.0.60.0030.01317.03
8.0.50.0130.00317.04
8.0.30.0040.01217.16
8.0.20.0130.00317.15
8.0.10.0130.00317.31
8.0.00.0030.02117.19
7.4.330.0030.00315.55
7.4.320.0000.00616.70
7.4.300.0040.00416.75
7.4.290.0000.00816.69
7.4.280.0040.00416.74
7.4.270.0030.00316.76
7.4.260.0030.00313.63
7.4.250.0000.00716.64
7.4.240.0040.00416.79
7.4.230.0000.00816.75
7.4.220.0000.00816.93
7.4.210.0060.01216.63
7.4.200.0140.00716.96
7.4.190.0150.00316.92
7.4.180.0090.00616.74
7.4.160.0070.01016.88
7.4.150.0130.00316.84
7.4.140.0060.00916.72
7.4.130.0040.01116.71
7.4.120.0060.00916.70
7.4.110.0090.00616.80
7.4.100.0100.00616.84
7.4.90.0090.00616.77
7.4.80.0070.01416.74
7.4.70.0090.00616.72
7.4.60.0150.00016.87
7.4.50.0120.00316.65
7.4.40.0060.00916.74
7.4.30.0070.01116.83
7.4.20.0090.01316.63
7.4.10.0120.00916.63
7.4.00.0030.01916.80
7.3.330.0030.00316.57
7.3.320.0030.00313.32
7.3.310.0030.00416.55
7.3.300.0040.00416.54
7.3.290.0060.00916.51
7.3.280.0130.00716.52
7.3.270.0160.00316.53
7.3.260.0140.00716.48
7.3.250.0130.01016.46
7.3.240.0100.01116.50
7.3.230.0030.01316.54
7.3.220.0070.01416.40
7.3.210.0060.00916.57
7.3.200.0100.00716.55
7.3.190.0060.01216.45
7.3.180.0000.01916.50
7.3.170.0070.01316.46
7.3.160.0080.00816.50
7.3.150.0060.01016.48
7.3.140.0070.01416.46
7.3.130.0090.01316.46
7.3.120.0100.00516.53
7.3.110.0000.01416.41
7.3.100.0030.01016.48
7.3.90.0060.00716.83
7.3.80.0110.00416.55
7.3.70.0030.01016.54
7.3.60.0140.00016.62
7.3.50.0000.01416.61
7.3.40.0100.00316.62
7.3.30.0080.00516.60
7.3.20.0050.01016.64
7.3.10.0030.01316.61
7.3.00.0070.00716.58

preferences:
28.11 ms | 403 KiB | 5 Q