3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[{ "title":"event 1", "timeFrom":"2019-11-16 19:00:00", "timeTo":"2019-11-18 22:00:00", "listText":"text of the event", "url":"https://url", "imageUrl":"https://image.jpg", "locations":{ "title":"Location name", "url":"https://location" } }, { "title":"event 2", "timeFrom":"2019-11-20 19:00:00", "timeTo":"2019-11-20 22:00:00", "listText":"text of the event", "url":"https://url", "imageUrl":"https://image.jpg", "locations":{ "title":"Location name", "url":"https://location" } }, { "title":"event 3", "timeFrom":"2019-11-17 19:00:00", "timeTo":"2019-11-17 22:00:00", "listText":"text of the event", "url":"https://url", "imageUrl":"https://image.jpg", "locations":{ "title":"Location name", "url":"https://location" }}]'; function find_events($events, $date) { $date = new DateTime($date); foreach ($events as $event) { $from = (new DateTime($event['timeFrom']))->setTime(0,0,0); $to = (new DateTime($event['timeTo']))->setTime(0,0,0); if ($date >= $from && $date <= $to) { echo "{$event['title']} ({$event['listText']}) from {$event['timeFrom']} to {$event['timeTo']}\n"; } } } $events = json_decode($json, true); find_events($events, '2019-11-17');

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.60.0140.00318.43
8.3.50.0070.01118.31
8.3.40.0100.00719.04
8.3.30.0140.00019.14
8.3.20.0030.00520.60
8.3.10.0000.00823.64
8.3.00.0040.00422.39
8.2.180.0060.00925.92
8.2.170.0090.00619.13
8.2.160.0110.00422.96
8.2.150.0080.00024.18
8.2.140.0050.00524.66
8.2.130.0070.00726.16
8.2.120.0080.00019.95
8.2.110.0070.00422.25
8.2.100.0090.00317.97
8.2.90.0060.00322.21
8.2.80.0000.00817.97
8.2.70.0030.00618.18
8.2.60.0000.00818.34
8.2.50.0040.00418.10
8.2.40.0060.00319.59
8.2.30.0000.00719.32
8.2.20.0040.00418.27
8.2.10.0050.00219.27
8.2.00.0000.00718.08
8.1.280.0130.01025.92
8.1.270.0000.00821.98
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0160.00622.67
8.1.230.0070.00420.92
8.1.220.0050.00317.78
8.1.210.0050.00318.95
8.1.200.0040.00417.48
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0060.00318.62
8.1.160.0040.00418.96
8.1.150.0000.00718.97
8.1.140.0050.00222.14
8.1.130.0040.00420.29
8.1.120.0000.00717.68
8.1.110.0030.00617.57
8.1.100.0050.00217.61
8.1.90.0060.00317.66
8.1.80.0040.00417.71
8.1.70.0080.00017.59
8.1.60.0030.00717.70
8.1.50.0090.00017.64
8.1.40.0040.00417.55
8.1.30.0000.00817.66
8.1.20.0000.00817.76
8.1.10.0000.00817.73
8.1.00.0000.00817.58
8.0.300.0040.00419.90
8.0.290.0040.00416.75
8.0.280.0030.00418.52
8.0.270.0000.00717.26
8.0.260.0000.00618.52
8.0.250.0030.00317.12
8.0.240.0050.00217.07
8.0.230.0080.00017.17
8.0.220.0040.00416.98
8.0.210.0000.00717.11
8.0.200.0030.00617.20
8.0.190.0040.00417.03
8.0.180.0080.00017.05
8.0.170.0040.00417.17
8.0.160.0110.00017.05
8.0.150.0040.00417.06
8.0.140.0000.00717.05
8.0.130.0000.00613.41
8.0.120.0000.00817.01
8.0.110.0070.00016.99
8.0.100.0040.00417.13
8.0.90.0070.00017.16
8.0.80.0050.01017.04
8.0.70.0070.00016.92
8.0.60.0040.00416.99
8.0.50.0050.00217.08
8.0.30.0100.00817.23
8.0.20.0100.01317.19
8.0.10.0000.00817.04
8.0.00.0150.00716.94
7.4.330.0050.00016.79
7.4.320.0000.00616.64
7.4.300.0060.00016.79
7.4.290.0030.00316.59
7.4.280.0040.00416.75
7.4.270.0040.00416.50
7.4.260.0040.00716.67
7.4.250.0070.00016.62
7.4.240.0000.00716.68
7.4.230.0080.00016.78
7.4.220.0040.00416.75
7.4.210.0100.00716.76
7.4.200.0000.00716.53
7.4.160.0110.00716.56
7.4.140.0140.01017.86
7.4.130.0060.01216.67
7.4.120.0140.00416.57
7.4.110.0060.01216.64
7.4.100.0120.00616.88
7.4.90.0150.00416.64
7.4.80.0000.01619.39
7.4.70.0070.01016.79
7.4.60.0090.00616.75
7.4.50.0100.01316.88
7.4.40.0110.01116.52
7.4.30.0090.01216.20
7.4.20.0150.00416.16
7.4.10.0090.00916.69
7.4.00.0020.01515.52
7.3.330.0050.00013.35
7.3.320.0030.00313.35
7.3.310.0030.00316.54
7.3.300.0030.00516.44
7.3.290.0030.01016.50
7.3.280.0170.00716.45
7.3.260.0100.01016.61
7.3.240.0090.00816.70
7.3.230.0070.01016.49
7.3.210.0140.00316.68
7.3.200.0110.00516.88
7.3.190.0090.00616.71
7.3.180.0090.00916.53
7.3.170.0070.01416.53
7.3.160.0100.01016.58
7.3.150.0070.01316.93
7.3.140.0040.01516.48
7.3.130.0040.01316.57
7.3.120.0070.01115.65
7.3.110.0080.01015.95
7.3.100.0050.01016.02
7.3.90.0070.01015.85
7.3.80.0080.00615.59
7.3.70.0090.00515.72
7.3.60.0110.00715.71
7.3.50.0070.00915.75
7.3.40.0100.00715.52
7.3.30.0080.01015.25
7.3.20.0530.00715.85
7.3.10.0410.00615.89
7.3.00.0410.00415.89
7.2.330.0200.00017.05
7.2.320.0040.01917.04
7.2.310.0080.00816.63
7.2.300.0040.01217.05
7.2.290.0060.01316.67
7.2.280.0130.01416.68
7.2.270.0150.00316.71
7.2.260.0040.01516.63
7.2.250.0110.01215.79
7.2.240.0080.01215.99
7.2.230.0080.01016.19
7.2.220.0080.01116.04
7.2.210.0090.00816.07
7.2.200.0060.00915.99
7.2.190.0110.00315.96
7.2.180.0040.01115.98
7.2.170.0070.01215.85
7.2.160.0080.01215.72
7.2.150.0700.01015.84
7.2.140.0590.00615.85
7.2.130.0500.00515.74
7.2.120.0490.00515.67
7.2.110.0430.00915.83
7.2.100.0500.01215.85
7.2.90.0700.00915.86
7.2.80.0540.01015.68
7.2.70.0580.01015.85
7.2.60.0510.01015.81
7.2.50.0560.01215.77
7.2.40.0500.01015.83
7.2.30.0620.01015.85
7.2.20.0640.01315.92
7.2.10.0540.01415.88
7.2.00.0450.00915.91
7.1.330.0230.00015.92
7.1.320.0190.01015.89
7.1.310.0290.00715.97
7.1.300.0140.00915.98
7.1.290.0120.01015.91
7.1.280.0130.00715.30
7.1.270.0450.01114.93
7.1.260.0490.00815.08
7.1.250.1090.00914.75
7.1.240.0290.01015.75
7.1.230.0210.01315.79
7.1.220.0230.00915.72
7.1.210.0200.01315.83
7.1.200.0210.00815.89
7.1.190.0220.01015.77
7.1.180.0160.01615.56
7.1.170.0280.00415.71
7.1.160.0260.00715.78
7.1.150.0270.00815.75
7.1.140.0280.00615.86
7.1.130.0230.01115.69
7.1.120.0160.02015.89
7.1.110.0230.01115.75
7.1.100.0300.00315.79
7.1.90.0300.00316.00
7.1.80.0150.01515.77
7.1.70.0230.00315.85
7.1.60.0240.01215.80
7.1.50.0250.00715.75
7.1.40.0200.01315.98
7.1.30.0210.01515.71
7.1.20.0460.00615.75
7.1.10.0210.00915.69
7.1.00.0190.00815.69
7.0.330.0230.00915.54
7.0.320.0190.00815.41
7.0.310.0230.00915.44
7.0.300.0190.01015.40
7.0.290.0160.01315.63
7.0.280.0290.00715.30
7.0.270.0470.00615.36
7.0.260.0170.01415.57
7.0.250.0370.00015.57
7.0.240.0200.01215.70
7.0.230.0110.01915.57
7.0.220.0240.00315.56
7.0.210.0240.00715.63
7.0.200.0300.01215.39
7.0.190.0250.00715.46
7.0.180.0260.01315.45
7.0.170.0210.00815.27
7.0.160.0250.00715.59
7.0.150.0250.01215.38
7.0.140.0240.01315.27
7.0.130.0270.01215.58
7.0.120.0180.02015.45
7.0.110.0170.02215.47
7.0.100.0400.01215.43
7.0.90.0250.01215.24
7.0.80.0310.00515.31
7.0.70.0180.01415.39
7.0.60.0300.00615.48
7.0.50.0200.01015.53
7.0.40.0220.01615.58
7.0.30.0280.00815.39
7.0.20.0190.00915.36
7.0.10.0240.01115.49
7.0.00.0210.01515.39
5.6.400.0160.02016.31
5.6.390.0170.01615.88
5.6.380.0140.02116.25
5.6.370.0220.01116.21
5.6.360.0200.01216.42
5.6.350.0170.02016.28
5.6.340.0230.01116.24
5.6.330.0160.01616.17
5.6.320.0190.01916.24
5.6.310.0290.01616.35
5.6.300.0070.00416.13
5.6.290.0240.01416.26
5.6.280.0240.01216.28
5.6.270.0270.01816.28
5.6.260.0260.01116.45
5.6.250.0290.00916.28
5.6.240.0260.01016.34
5.6.230.0340.01216.22
5.6.220.0270.01115.93
5.6.210.0230.01416.05
5.6.200.0150.02216.50
5.6.190.0200.01616.29
5.6.180.0250.01416.29
5.6.170.0230.01416.22
5.6.160.0180.01816.32
5.6.150.0230.01416.21
5.6.140.0260.01216.16
5.6.130.0210.01416.08
5.6.120.0280.00916.40
5.6.110.0240.01716.24
5.6.100.0230.01216.05
5.6.90.0230.00416.02
5.6.80.0220.01416.27
5.6.70.0230.01316.22
5.6.60.0180.01216.11
5.6.50.0230.01116.40
5.6.40.0210.00916.04
5.6.30.0150.02116.15
5.6.20.0210.01416.16
5.6.10.0250.01016.26
5.6.00.0180.01816.30
5.5.380.0190.01316.10
5.5.370.0190.01116.13
5.5.360.0270.00616.00
5.5.350.0220.01416.13
5.5.340.0190.01316.28
5.5.330.0220.01116.01
5.5.320.0230.01216.08
5.5.310.0270.00615.92
5.5.300.0130.02216.23
5.5.290.0230.01016.23
5.5.280.0250.01216.13
5.5.270.0240.01116.20
5.5.260.0200.01116.19
5.5.250.0260.00915.86
5.5.240.0170.01815.99
5.5.230.0320.00316.15
5.5.220.0080.02116.00
5.5.210.0280.00615.96
5.5.200.0190.01716.00
5.5.190.0210.01216.00
5.5.180.0100.02316.09
5.5.170.0210.01116.18
5.5.160.0230.01515.98
5.5.150.0140.01416.02
5.5.140.0130.01716.03
5.5.130.0130.02215.98
5.5.120.0130.01315.85
5.5.110.0130.01415.98
5.5.100.0160.01016.02
5.5.90.0220.00615.85
5.5.80.0130.01015.84
5.5.70.0220.00715.83
5.5.60.0150.01716.05
5.5.50.0100.01815.82
5.5.40.0170.01415.98
5.5.30.0200.01015.81
5.5.20.0240.00316.04
5.5.10.0250.00415.91
5.5.00.0220.01715.99
5.4.450.0170.00612.99
5.4.440.0240.00713.03
5.4.430.0110.01013.01
5.4.420.0100.01712.90
5.4.410.0130.01012.84
5.4.400.0210.01013.01
5.4.390.0170.01112.92
5.4.380.0150.00912.97
5.4.370.0160.01212.88
5.4.360.0230.00612.91
5.4.350.0150.01112.86
5.4.340.0140.01313.04
5.4.330.0200.00612.97
5.4.320.0170.01312.83
5.4.310.0160.01012.79
5.4.300.0170.00913.07
5.4.290.0100.01612.65
5.4.280.0140.01213.01
5.4.270.0190.00312.51
5.4.260.0180.00412.73
5.4.250.0190.00613.04
5.4.240.0200.00212.79
5.4.230.0140.01012.67
5.4.220.0150.00612.78
5.4.210.0110.01112.70
5.4.200.0170.00312.87
5.4.190.0120.00812.81
5.4.180.0140.00212.66
5.4.170.0140.00912.87
5.4.160.0140.00912.93
5.4.150.0160.00812.68
5.4.140.0200.00412.78
5.4.130.0110.01112.49
5.4.120.0290.00512.92
5.4.110.0210.00712.66
5.4.100.0080.01512.82
5.4.90.0120.01212.57
5.4.80.0130.01212.90
5.4.70.0110.01212.95
5.4.60.0090.00912.80
5.4.50.0160.00912.74
5.4.40.0170.00512.67
5.4.30.0000.01912.71
5.4.20.0290.00412.85
5.4.10.0090.01412.75
5.4.00.0150.00912.67
5.3.290.0250.00312.81
5.3.280.0160.01012.68
5.3.270.0070.01512.72
5.3.260.0180.00912.86
5.3.250.0080.01412.70
5.3.240.0300.01612.76
5.3.230.0200.00712.65
5.3.220.0110.01312.69
5.3.210.0180.00512.64
5.3.200.0190.01012.73
5.3.190.0340.00912.87
5.3.180.0070.01812.86
5.3.170.0120.00612.99
5.3.160.0200.00712.91
5.3.150.0140.00512.92
5.3.140.0220.00312.88
5.3.130.0130.01012.87
5.3.120.0170.01012.86
5.3.110.0180.01112.78
5.3.100.0140.01212.83
5.3.90.0150.01212.83
5.3.80.0220.00312.79
5.3.70.0150.01212.77
5.3.60.0140.01112.84
5.3.50.0170.01412.70
5.3.40.0180.00712.66
5.3.30.0190.01012.75
5.3.20.0080.01812.75
5.3.10.0190.00612.55
5.3.00.0160.01212.52
5.2.170.0140.01111.86
5.2.160.0120.00811.86
5.2.150.0160.00411.84
5.2.140.0140.00711.79
5.2.130.0120.01211.78
5.2.120.0150.00911.78
5.2.110.0100.01311.71
5.2.100.0090.01411.81
5.2.90.0130.00611.74
5.2.80.0160.00511.73
5.2.70.0100.01011.71
5.2.60.0100.01011.71
5.2.50.0210.00411.71
5.2.40.0140.00611.71
5.2.30.0150.00911.72
5.2.20.0160.00411.71
5.2.10.0090.01211.71
5.2.00.0140.00311.71
5.1.60.0040.01311.71
5.1.50.0060.01211.71
5.1.40.0130.00211.71
5.1.30.0060.00711.71
5.1.20.0040.01111.71
5.1.10.0070.01111.71
5.1.00.0070.01011.71
5.0.50.0040.01111.71
5.0.40.0100.00511.71
5.0.30.0140.00011.71
5.0.20.0040.00911.71
5.0.10.0030.01111.71
5.0.00.0070.00711.71
4.4.90.0050.00511.71
4.4.80.0100.00011.71
4.4.70.0090.00311.71
4.4.60.0040.00511.71
4.4.50.0100.00011.71
4.4.40.0030.00611.71
4.4.30.0050.00311.71
4.4.20.0070.00211.71
4.4.10.0090.00011.71
4.4.00.0090.00011.71
4.3.110.0000.00911.71
4.3.100.0070.00311.71
4.3.90.0030.00611.71
4.3.80.0040.00511.71
4.3.70.0060.00311.71
4.3.60.0000.00811.71
4.3.50.0040.00411.71
4.3.40.0050.00211.71
4.3.30.0020.00411.71
4.3.20.0070.00011.71
4.3.10.0040.00411.71
4.3.00.0020.00411.71

preferences:
62.83 ms | 400 KiB | 5 Q