3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array ( 'blue' => array ( 0 => 'Direct to the city from St Anns, Thorneywood, Carlton Valley and City Hospital', 1 => 'The only bus from the city onto City Hospital campus', 2 => 'From every 6 minutes (St Anns - City)', 3 => 'From every 15-20 minutes (Sundays and evenings)', 4 => 'Central city centre bus stop on Queen Street', 5 => 'Plenty of room for buggies and wheelchairs', ), 'brown' => array ( 0 => 'Direct to the City from Bulwell, Bestwood and Top Valley', 1 => 'From every 3-7 minutes (Mon-Sat daytime)', 2 => 'From every 15 minutes (Sundays and evenings)', 3 => 'Plenty of room for buggies and wheelchairs', 4 => 'Brown Line 15 extended back to Rise Park via Top Valley', ), 'go2night' => array ( 0 => 'N4: Queens Drive, Clifton Bridge, Clifton NTU Campus and Clifton (Man of Trent)', 1 => 'N6: Trent Bridge and West Bridgford', 2 => 'N27: Sneinton Dale, Carlton, Westdale Lane and Mapperley', 3 => 'N28: Jubilee Campus, Beechdale, Bilborough and Wollaton Vale', 4 => 'N34: Derby Road, QMC, University Park Campus and Beeston (term time only)', 5 => 'N36: Derby Road, QMC, University Park Campus, Beeston and Chilwell', 6 => 'N48: Meadows, Clifton and Ruddington', 7 => 'N58: Sherwood and Arnold', 8 => 'N68: Sherwood Rise, Basford and Bulwell', 9 => 'N77: Aspley Lane, Strelley and Cinderhill', 10 => 'N89: Hucknall Road, Bestwood Park, Rise Park and Top Valley', 11 => 'N100: Colwick, Burton Joyce, Lowdham, NTU Brackenhurst Campus and Southwell', 12 => 'N4 timetable', 13 => 'N34 timetable', 14 => 'All day tickets and valid Easyrider Citycards are valid on Go2 Night at no extra charge (within the City Bus Network Zone)', 15 => 'No other tickets or passes are valid (including concessionary cards)', ), 'green' => array ( 0 => 'Direct to the city from West Bridgford, via Central Avenue and Trent Bridge', 1 => 'From every 5 minutes (Mon-Sat daytime)', 2 => 'From every 10 minutes (Sundays and evenings)', 3 => 'Ideal for getting to Notts County, Nottingham Forest and the Cricket Ground', 4 => 'Plenty of room for buggies and wheelchairs', 5 => 'Late night buses on Friday and Saturday nights!', ), 'lilac' => array ( 0 => 'Direct to the city from Carlton and Westdale Lane', 1 => 'From every 5 minutes (Mon-Sat daytime)', 2 => 'From every 15 minutes (Sundays and evenings)', 3 => 'Regular, daily links through to Daybrook and Arnold for shopping', 4 => 'Plenty of room for buggies and wheelchairs', 5 => 'Late night buses on Friday and Saturday nights!', ), 'lime' => array ( 0 => 'Direct to the city from Arnold and Sherwood', 1 => 'From every 5 minutes (Mon-Sat daytime)', 2 => 'From every 20 minutes (Sundays and evenings)', 3 => 'Plenty of room for buggies and wheelchairs', 4 => 'Late night buses on Friday and Saturday nights!', ), 'maroon' => array ( 0 => 'Direct to the City from Chilwell, Beeston and Nottingham University', 1 => 'From every 30 minutes (Mon-Sat daytime)', 2 => 'Plenty of room for buggies and wheelchairs', ), 'navy' => array ( 0 => 'Direct to the City from Clifton via either Trent Bridge or Clifton Bridge', 1 => 'From every 7 minutes (Mon-Sat daytime)', 2 => 'From every 20 minutes (Sundays and evenings)', 3 => 'Unilink 4 from every 7 minutes onto NTU Clifton Campus, term times', 4 => 'Navy Line 1 to Gotham, East Leake and Loughborough', 5 => 'Plenty of room for buggies and wheelchairs', 6 => 'Late night buses to Clifton Lane and Clifton NTU Campus, 6 nights a week!', ), 'orange' => array ( 0 => 'Direct to the city from Chilwell, Beeston, University Park, QMC and Wollaton via Derby Road', 1 => 'From every 2-3 minutes (Mon-Fri daytime) QMC to the City Centre', 2 => 'From every 10 minutes (Sundays and evenings)', 3 => 'Service 37 every 15 minutes to the QMC forecourt', 4 => 'Go2 Uni 34 from every 5 minutes onto University Park (term-time) and from every 12 minutes during the holidays and at weekends!', 5 => 'Plenty of room for buggies and wheelchairs', 6 => 'Late night buses to Derby Road, University Park and Beeston, 6 nights a week! (term time only)', ), 'pathfinder' => array ( 0 => 'Direct to Nottingham from Southwell, Brackenhurst Campus, Lowdham, Burton Joyce and Carlton Square', 1 => 'From every 20 minutes (Mon-Sat daytime)', 2 => 'From every hour (Sundays and evenings)', 3 => 'Plenty of room for buggies and wheelchairs', 4 => 'Late night buses on Friday and Saturday nights!', ), 'pink' => array ( 0 => 'Direct to the city from Jubilee Campus, Wollaton and Bilborough', 1 => 'From every 8-10 minutes (Mon-Sat daytime)', 2 => 'From every 20 minutes (Sundays and evenings)', 3 => 'Plenty of room for buggies and wheelchairs', 4 => 'Late night buses on Friday and Saturday nights!', ), 'purple' => array ( 0 => 'Direct to the city from Sherwood, Arnold and Rise Park', 1 => 'From every 3-7 minutes (Mon-Sat daytime)', 2 => 'From every 20 minutes (Sundays and evenings)', 3 => 'Stops outside the City Hospital on Edwards Lane - buses from every 4-8 minutes', 4 => 'Plenty of room for buggies and wheelchairs', 5 => 'Late night buses on Friday and Saturday nights!', ), 'red' => array ( 0 => 'Direct to the city from Sneinton, Bakersfield, Netherfield and Gedling', 1 => 'From every 7 minutes (Mon-Sat daytime)', 2 => 'From every 15 minutes (Sundays and evenings)', 3 => 'Plenty of room for buggies and wheelchairs', ), 'skyblue' => array ( 0 => 'Direct to the city from Gedling, Mapperley and Woodborough Road', 1 => 'From every 7 minutes (Mon-Sat daytime)', 2 => 'From every 20 minutes (Sundays and evenings)', 3 => 'Plenty of room for buggies and wheelchairs', 4 => 'New services 46, 47 for Mapperley Plains, Woodborough, Lambley and Calverton', ), 'turquoise' => array ( 0 => 'Direct to the city from Strelley, Aspley and Bulwell', 1 => 'From every 6 minutes on Monday to Saturday daytimes on Turquoise Line 77', 2 => 'Every 7-8 minutes (Mon-Sat daytime) between Nuthall Road and the City Centre', 3 => 'Regular evening and Sunday buses', 4 => 'Now continuing through to Arnold every 15 minutes on Monday to Saturday daytimes on the 79, 79A', 5 => 'Plenty of room for buggies and wheelchairs', 6 => 'Late night buses on Friday and Saturday nights!', ), 'yellow' => array ( 0 => 'Direct to the city from Bulwell and Basford via Sherwood Rise', 1 => 'From every 7-8 minutes (Mon-Sat daytime)', 2 => 'From every 15 minutes (Sundays and evenings)', 3 => 'Plenty of room for buggies and wheelchairs', ), ); print_r(json_decode(json_encode($data))['blue']));

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)
5.4.190.0150.04312.42
5.4.180.0200.06812.42
5.4.170.0160.04112.42
5.4.160.0170.04112.42
5.4.150.0170.04212.41
5.4.140.0170.04012.10
5.4.130.0130.04512.09
5.4.120.0160.04012.05
5.4.110.0180.03812.05
5.4.100.0110.04712.05
5.4.90.0160.04112.05
5.4.80.0140.04212.05
5.4.70.0110.04512.04
5.4.60.0180.03812.05
5.4.50.0150.04112.05
5.4.40.0210.06412.04
5.4.30.0180.03912.03
5.4.20.0180.04112.03
5.4.10.0160.04312.03
5.4.00.0160.04111.52
5.3.270.0150.04612.72
5.3.260.0400.08312.72
5.3.250.0180.04412.72
5.3.240.0190.04112.72
5.3.230.0140.04612.71
5.3.220.0170.04412.68
5.3.210.0160.04412.68
5.3.200.0150.04312.68
5.3.190.0150.04512.68
5.3.180.0130.04612.67
5.3.170.0210.03812.67
5.3.160.0140.04512.67
5.3.150.0180.04112.68
5.3.140.0130.04612.66
5.3.130.0180.07212.66
5.3.120.0170.04312.66
5.3.110.0140.04512.66
5.3.100.0200.04012.12
5.3.90.0160.04212.09
5.3.80.0120.04612.08
5.3.70.0130.04612.08
5.3.60.0120.04712.06
5.3.50.0200.06912.02
5.3.40.0120.04612.01
5.3.30.0190.03711.98
5.3.20.0160.04111.75
5.3.10.0130.04311.71
5.3.00.0140.04211.71

preferences:
142.31 ms | 1394 KiB | 7 Q