3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array_list = 'a:5:{i:0;a:3:{s:2:"id";s:3:"191";s:4:"name";s:3:"Ali";s:5:"range";s:5:"today";}i:1;a:3:{s:2:"id";s:3:"190";s:4:"name";s:4:"John";s:5:"range";s:5:"today";}i:2;a:3:{s:2:"id";s:3:"189";s:4:"name";s:5:"peter";s:5:"range";s:12:"in last week";}i:3;a:3:{s:2:"id";s:3:"180";s:4:"name";s:3:"Ali";s:5:"range";s:12:"in last week";}i:4;a:3:{s:2:"id";s:3:"170";s:4:"name";s:4:"Jack";s:5:"range";s:12:"in last week";}}'; $array_list = unserialize($array_list); $new_list = array(); foreach( $array_list as $list ) $new_list[$list['range']][] = $list; ?> <div id="notification_box"> <?php foreach( $new_list as $item_name => $items ): ?> <div class= "cases"> <div class="title"><?php echo $item_name ?></div> <?php if( $items && is_array( $items ) ) { ?> <table> <?php foreach( $items as $item ): ?> <tr> <td><?php echo $item['id'] ?></td> <td><?php echo $item['name'] ?></td> </tr> <?php endforeach; ?> </table> <?php } ?> </div> <?php endforeach; ?> </div>

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.130.0060.00318.20
8.3.120.0080.00820.70
8.3.110.0040.00416.71
8.3.100.0030.00718.66
8.3.90.0030.00526.77
8.3.80.0060.00317.97
8.3.70.0110.00418.56
8.3.60.0140.00318.68
8.3.50.0150.00522.05
8.3.40.0080.00618.70
8.3.30.0040.01118.85
8.3.20.0000.00719.32
8.3.10.0070.00321.77
8.3.00.0080.00020.97
8.2.250.0140.00716.62
8.2.240.0060.00318.81
8.2.230.0000.00820.94
8.2.220.0050.00524.06
8.2.210.0000.01126.77
8.2.200.0070.00718.16
8.2.190.0140.00418.43
8.2.180.0120.00318.45
8.2.170.0150.00622.96
8.2.160.0100.00322.26
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.83
8.2.110.0030.00620.39
8.2.100.0060.00617.91
8.2.90.0050.00517.75
8.2.80.0080.00018.86
8.2.70.0000.00818.05
8.2.60.0060.00318.16
8.2.50.0050.00318.10
8.2.40.0060.00321.20
8.2.30.0040.00418.11
8.2.20.0000.00817.76
8.2.10.0040.00418.15
8.2.00.0040.00418.04
8.1.300.0060.00320.00
8.1.290.0100.00730.84
8.1.280.0060.01225.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0090.00928.09
8.1.240.0100.00023.77
8.1.230.0060.00623.83
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00918.50
8.1.160.0080.00018.93
8.1.150.0000.00918.88
8.1.140.0000.00719.52
8.1.130.0000.00717.72
8.1.120.0040.00417.39
8.1.110.0000.00717.46
8.1.100.0000.00717.54
8.1.90.0020.00517.48
8.1.80.0040.00417.41
8.1.70.0100.00017.37
8.1.60.0060.00317.65
8.1.50.0040.00417.45
8.1.40.0040.00417.54
8.1.30.0040.00417.68
8.1.20.0020.00517.64
8.1.10.0030.00517.51
8.1.00.0060.00317.54
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0070.00018.53
8.0.270.0070.00017.28
8.0.260.0070.00017.33
8.0.250.0000.00816.96
8.0.240.0040.00417.04
8.0.230.0030.00617.00
8.0.220.0000.00816.99
8.0.210.0000.00717.01
8.0.200.0000.00617.00
8.0.190.0030.00416.99
8.0.180.0040.00416.97
8.0.170.0070.00016.96
8.0.160.0040.00417.11
8.0.150.0000.00716.82
8.0.140.0030.00516.97
8.0.130.0000.00613.35
8.0.120.0040.00417.00
8.0.110.0080.00016.86
8.0.100.0040.00417.04
8.0.90.0030.00516.93
8.0.80.0090.00617.03
8.0.70.0000.00817.04
8.0.60.0000.00716.98
8.0.50.0040.00417.00
8.0.30.0090.01017.30
8.0.20.0090.01117.40
8.0.10.0000.00716.91
8.0.00.0060.01316.64
7.4.330.0000.00515.08
7.4.320.0060.00016.55
7.4.300.0060.00016.66
7.4.290.0000.00716.46
7.4.280.0040.00416.50
7.4.270.0000.00716.63
7.4.260.0030.00316.41
7.4.250.0050.00316.45
7.4.240.0050.00316.48
7.4.230.0080.00016.73
7.4.220.0100.00916.50
7.4.210.0090.01216.60
7.4.200.0040.00316.42
7.4.160.0140.00016.59
7.4.150.0030.01617.40
7.4.140.0100.01117.86
7.4.130.0100.00716.63
7.4.120.0110.00816.57
7.4.110.0060.01016.74
7.4.100.0030.01416.61
7.4.90.0050.01416.57
7.4.80.0070.01419.39
7.4.70.0070.01116.51
7.4.60.0000.01516.47
7.4.50.0060.00816.71
7.4.40.0030.01916.46
7.4.30.0000.01616.54
7.4.00.0040.01215.01
7.3.330.0000.00613.30
7.3.320.0030.00313.11
7.3.310.0000.00716.32
7.3.300.0070.00016.35
7.3.290.0090.00716.40
7.3.280.0050.01116.36
7.3.270.0120.01217.40
7.3.260.0110.00516.51
7.3.250.0080.01016.46
7.3.240.0100.00916.54
7.3.230.0110.00516.63
7.3.210.0140.00316.57
7.3.200.0070.01016.46
7.3.190.0080.00916.55
7.3.180.0090.00616.39
7.3.170.0120.00616.41
7.3.160.0060.01216.25
7.3.10.0070.00816.67
7.3.00.0030.01016.75
7.2.330.0030.01616.57
7.2.320.0160.00016.72
7.2.310.0120.00616.81
7.2.300.0040.01516.51
7.2.290.0060.01216.80
7.2.130.0090.00616.60
7.2.120.0060.00916.85
7.2.110.0000.01416.77
7.2.100.0040.01116.99
7.2.90.0070.00316.87
7.2.80.0070.00716.83
7.2.70.0100.00317.22
7.2.60.0100.00316.85
7.2.50.0060.00317.21
7.2.40.0030.01416.93
7.2.30.0040.00416.96
7.2.20.0090.00317.04
7.2.10.0150.00017.02
7.2.00.0030.00918.15
7.1.250.0000.01715.60
7.1.100.0060.00618.24
7.1.70.0100.00317.19
7.1.60.0130.01019.47
7.1.00.0100.07022.42
7.0.200.0260.00714.82
7.0.70.0970.06019.91
7.0.60.1070.06719.93
7.0.50.1070.05720.29
7.0.40.1230.07020.24
7.0.30.0770.06720.38
7.0.20.1070.07720.36
7.0.10.1070.06320.34
7.0.00.1270.07020.36
5.6.280.0030.07320.81
5.6.220.0900.05320.57
5.6.210.0730.06020.62
5.6.200.0870.06321.10
5.6.190.0900.06021.13
5.6.180.0230.05321.02
5.6.170.1000.06021.01
5.6.160.1000.06721.16
5.6.150.1100.05721.19
5.6.140.0730.06021.19
5.6.130.0730.07021.17
5.6.120.0070.07321.16
5.6.110.0370.06721.16
5.6.100.0870.05721.14
5.6.90.0900.06721.17
5.6.80.0900.05720.40
5.6.70.0970.06320.54
5.6.60.0700.06320.36
5.6.50.0800.06320.48
5.6.40.0870.06020.43
5.6.30.0800.06020.48
5.6.20.0770.05320.51
5.6.10.0900.06020.48
5.6.00.0770.05720.35
5.5.360.1000.07020.41
5.5.350.0930.04720.59
5.5.340.0900.04720.88
5.5.330.1000.07720.85
5.5.320.0200.05320.79
5.5.310.0870.06320.97
5.5.300.1070.06320.91
5.5.290.0700.08720.79
5.5.280.0100.07020.77
5.5.270.0870.06020.76
5.5.260.0730.06020.91
5.5.250.1130.04020.70
5.5.240.0900.06020.32
5.5.230.0700.06320.34
5.5.220.1100.08020.31
5.5.210.1030.05720.20
5.5.200.0930.04720.29
5.5.190.0930.07020.26
5.5.180.1030.06320.28
5.5.160.0770.06020.28
5.5.150.0700.06020.28
5.5.140.0730.06020.29
5.5.130.0900.06020.32
5.5.120.0700.05720.18
5.5.110.0870.06020.20
5.5.100.0830.05720.13
5.5.90.0870.04320.09
5.5.80.0830.05320.16
5.5.70.0800.05020.00
5.5.60.0830.05020.08
5.5.50.0900.06020.11
5.5.40.1070.07320.21
5.5.30.1000.05320.15
5.5.20.0830.05319.94
5.5.10.0700.06720.15
5.5.00.0870.05720.02

preferences:
26.91 ms | 403 KiB | 5 Q