3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array ( 0 => array ( 'ID' => '1', 'link' => 'example.com/link', 'description' => 'that\'s a description', 'eventDate' => '2020-04-07 01:04:25', ), 1 => array ( 'ID' => '6', 'link' => 'example.com/link', 'description' => 'that\'s a description', 'eventDate' => '2020-04-15 00:00:00', ), 2 => array ( 'ID' => '7', 'link' => 'example.com/link', 'description' => 'that\'s a description', 'eventDate' => '2020-04-16 07:24:11', ), 3 => array ( 'ID' => '8', 'link' => 'example.com/link', 'description' => 'that\'s a description', 'eventDate' => '2020-04-26 07:07:10', ), ); $events = array(); foreach ($data as $event) { $events[date('Y-m-d', strtotime($event['eventDate']))] = array( 'text' => $event['description'], 'href' => $event['link'] ); } var_export($events);

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.5.10.0120.00616.66
8.5.00.0130.00920.04
8.4.160.0120.01023.00
8.4.150.0030.00014.05
8.4.140.0100.01117.56
8.4.130.0140.00617.97
8.4.120.0110.00920.84
8.4.110.0120.00822.44
8.4.100.0110.00923.87
8.4.90.0130.00818.52
8.4.80.0080.00218.14
8.4.70.0030.00418.07
8.4.60.0170.00319.11
8.4.50.0100.01117.79
8.4.40.0150.00618.70
8.4.30.0060.01318.80
8.4.20.0030.01720.77
8.4.10.0100.00019.52
8.3.280.0090.01218.61
8.3.270.0100.01017.07
8.3.260.0140.00616.57
8.3.250.0090.00119.07
8.3.240.0070.00316.82
8.3.230.0120.00716.78
8.3.220.0080.00717.26
8.3.210.0110.00816.63
8.3.200.0070.00116.58
8.3.190.0090.01020.94
8.3.180.0110.00516.91
8.3.170.0030.00717.41
8.3.160.0110.00716.86
8.3.150.0090.00617.16
8.3.140.0000.00916.93
8.3.130.0060.00316.89
8.3.120.0120.00620.79
8.3.110.0060.00320.94
8.3.100.0000.01118.71
8.3.90.0040.00416.79
8.3.80.0090.00016.75
8.3.70.0120.00316.75
8.3.60.0070.00716.63
8.3.50.0050.01224.71
8.3.40.0060.01020.13
8.3.30.0090.00618.84
8.3.20.0040.00421.95
8.3.10.0040.00421.92
8.3.00.0000.00822.46
8.2.290.0130.00720.24
8.2.280.0110.00718.95
8.2.270.0120.00619.13
8.2.260.0000.00822.55
8.2.250.0080.00016.80
8.2.240.0080.00019.21
8.2.230.0030.00722.58
8.2.220.0100.00724.06
8.2.210.0040.00426.77
8.2.200.0060.00316.88
8.2.190.0210.00016.88
8.2.180.0030.01716.75
8.2.170.0090.00620.95
8.2.160.0140.00019.41
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0070.00322.21
8.2.100.0070.00418.03
8.2.90.0000.00817.97
8.2.80.0030.00619.27
8.2.70.0040.00417.88
8.2.60.0040.00417.75
8.2.50.0030.00517.75
8.2.40.0040.00419.60
8.2.30.0060.00318.26
8.2.20.0040.00418.18
8.2.10.0040.00419.29
8.2.00.0030.00619.47
8.1.330.0060.00422.07
8.1.320.0120.00816.12
8.1.310.0110.00716.69
8.1.300.0150.00320.07
8.1.290.0090.00018.88
8.1.280.0060.01225.92
8.1.270.0030.00622.00
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00323.88
8.1.230.0040.00821.04
8.1.220.0080.00017.88
8.1.210.0060.00318.77
8.1.200.0030.00717.60
8.1.190.0040.00417.66
8.1.180.0050.00318.10
8.1.170.0040.00418.90
8.1.160.0040.00418.97
8.1.150.0040.00418.97
8.1.140.0000.00718.91
8.1.130.0070.00020.02
8.1.120.0000.00717.54
8.1.110.0030.00517.63
8.1.100.0040.00417.61
8.1.90.0040.00417.55
8.1.80.0070.00017.56
8.1.70.0030.00517.63
8.1.60.0040.00417.71
8.1.50.0040.00417.50
8.1.40.0000.00817.65
8.1.30.0000.00817.81
8.1.20.0000.00817.79
8.1.10.0040.00417.58
8.1.00.0000.00717.52
8.0.300.0000.00720.16
8.0.290.0040.00416.88
8.0.280.0000.00718.44
8.0.270.0000.00718.21
8.0.260.0000.01820.07
8.0.250.0030.00317.23
8.0.240.0040.00417.12
8.0.230.0000.00717.12
8.0.220.0000.00717.11
8.0.210.0000.00717.06
8.0.200.0030.00317.18
8.0.190.0050.00217.16
8.0.180.0040.00417.13
8.0.170.0000.01217.09
8.0.160.0040.00417.09
8.0.150.0000.00717.05
8.0.140.0070.00317.05
8.0.130.0030.00313.54
8.0.120.0000.00717.08
8.0.110.0040.00417.13
8.0.100.0040.00417.22
8.0.90.0000.00917.05
8.0.80.0080.00916.99
8.0.70.0050.00316.88
8.0.60.0050.00316.93
8.0.50.0040.00417.04
8.0.30.0090.01417.25
8.0.20.0090.01117.10
8.0.10.0000.00717.18
8.0.00.0090.01517.04
7.4.330.0000.00415.55
7.4.320.0000.00716.74
7.4.300.0070.00016.75
7.4.290.0070.00016.79
7.4.280.0000.00716.64
7.4.270.0030.00416.70
7.4.260.0030.00313.37
7.4.250.0070.00016.64
7.4.240.0030.00316.64
7.4.230.0070.00016.84
7.4.220.0050.00216.59
7.4.210.0080.00816.70
7.4.200.0070.00016.54
7.4.130.0120.01016.59
7.4.120.0070.01416.73
7.4.110.0100.00716.77
7.4.100.0100.00716.83
7.4.90.0040.01216.83
7.4.80.0140.00419.39
7.4.70.0100.01016.82
7.4.60.0100.00716.66
7.4.50.0070.01116.48
7.4.40.0070.01116.55
7.4.30.0080.01316.73
7.4.20.0080.00816.73
7.4.10.0120.00916.47
7.4.00.0060.00916.59
7.3.330.0000.00716.40
7.3.320.0050.00013.30
7.3.310.0040.00416.52
7.3.300.0030.00316.45
7.3.290.0080.01216.50
7.3.280.0040.01116.40
7.3.260.0070.01016.70
7.3.240.0100.00916.54
7.3.230.0110.00616.88
7.3.210.0070.01016.76
7.3.200.0210.00016.41
7.3.190.0100.00716.58
7.3.180.0130.00316.68
7.3.170.0070.01016.55
7.3.160.0080.01016.50
7.3.150.0060.01316.43
7.3.140.0150.00416.64
7.3.130.0100.01016.59
7.3.120.0100.00716.54
7.3.110.0140.00316.68
7.3.100.0130.01116.61
7.3.90.0200.00016.46
7.3.80.0110.01116.31
7.3.70.0150.00516.52
7.3.60.0160.00316.46
7.3.50.0150.00316.49
7.3.40.0100.00716.43
7.3.30.0100.00716.52
7.3.20.0040.01216.32
7.3.10.0120.00916.50
7.3.00.0120.00916.44
7.2.330.0070.01016.84
7.2.320.0060.01116.83
7.2.310.0100.00616.83
7.2.300.0090.00916.93
7.2.290.0180.00616.62
7.2.280.0160.00616.79
7.2.270.0120.01216.76
7.2.260.0100.01316.82
7.2.250.0120.00616.88
7.2.240.0100.01016.58
7.2.230.0090.01716.73
7.2.220.0130.00916.86
7.2.210.0110.00916.79
7.2.200.0170.00416.77
7.2.190.0090.01116.61
7.2.180.0060.01016.70
7.2.170.0100.00716.74
7.2.160.0070.01016.69
7.2.150.0110.01116.73
7.2.140.0140.01016.73
7.2.130.0050.01616.91
7.2.120.0060.01216.68
7.2.110.0100.01016.65
7.2.100.0170.00316.76
7.2.90.0130.00716.71
7.2.80.0160.00516.68
7.2.70.0220.00716.88
7.2.60.0090.00916.55
7.2.50.0120.00816.71
7.2.40.0100.00716.80
7.2.30.0080.01216.68
7.2.20.0090.01516.64
7.2.10.0160.00616.86
7.2.00.0110.00816.82

preferences:
43.56 ms | 403 KiB | 5 Q