3v4l.org

run code in 500+ PHP versions simultaneously
<?php $fields = array ( 'media' => array ( 0 => '327', ), 'content' => array ( 0 => ' Custom test 1 ', 1 => ' Custom test 2 ', ), '_edit_lock' => array ( 0 => '1667908749:1', ), ); echo '<ul>'; foreach($fields as $key => $i) { if(in_array($key,array("_edit_lock", "_edit_last", "_thumbnail_id"))) continue; foreach($i as $value) { echo '<li>'.$value.'</li>'; } } echo '</ul>';

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.70.0070.00616.76
8.5.60.0100.00816.71
8.5.50.0110.00516.75
8.5.30.0090.00819.41
8.5.20.0110.00619.50
8.5.10.0120.00620.11
8.5.00.0140.01019.72
8.4.210.0120.00719.30
8.4.180.0130.00919.61
8.4.170.0130.00921.81
8.4.160.0120.00923.94
8.4.150.0070.00516.73
8.4.140.0110.01017.35
8.4.130.0090.01017.86
8.4.120.0120.00822.54
8.4.110.0100.00822.48
8.4.100.0070.00118.71
8.4.90.0100.01118.55
8.4.80.0140.00618.84
8.4.70.0140.00617.61
8.4.60.0030.00718.76
8.4.50.0060.00220.32
8.4.40.0210.00019.54
8.4.30.0130.00618.86
8.4.20.0060.00319.77
8.4.10.0040.00423.88
8.3.300.0110.01018.64
8.3.290.0080.01120.87
8.3.280.0100.01018.34
8.3.270.0100.01016.59
8.3.260.0060.00916.75
8.3.250.0100.00819.03
8.3.240.0090.01117.02
8.3.230.0050.00616.80
8.3.220.0100.00819.04
8.3.210.0100.00816.72
8.3.200.0060.00316.28
8.3.190.0090.00718.96
8.3.180.0070.01216.44
8.3.170.0060.01220.84
8.3.160.0110.00717.26
8.3.150.0140.00419.02
8.3.140.0030.00520.66
8.3.130.0030.00518.26
8.3.120.0060.00319.00
8.3.110.0080.00020.94
8.3.100.0060.00316.50
8.3.90.0080.00026.77
8.3.80.0030.00616.75
8.3.70.0090.00916.63
8.3.60.0150.00416.50
8.3.50.0040.01120.12
8.3.40.0070.00720.07
8.3.30.0110.00418.63
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.300.0120.00722.17
8.2.290.0110.00720.50
8.2.280.0040.00418.35
8.2.270.0080.00016.65
8.2.260.0060.00316.43
8.2.250.0110.01118.39
8.2.240.0060.00316.92
8.2.230.0050.00522.58
8.2.220.0080.00024.06
8.2.210.0180.00026.77
8.2.200.0080.00318.54
8.2.190.0120.00616.58
8.2.180.0100.00325.92
8.2.170.0110.00318.88
8.2.160.0000.01322.96
8.2.150.0090.00025.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0030.00622.08
8.2.100.0110.00018.03
8.2.90.0050.00317.63
8.2.80.0050.00318.04
8.2.70.0000.00817.50
8.2.60.0040.00417.93
8.2.50.0070.00418.07
8.2.40.0040.00418.09
8.2.30.0070.00017.98
8.2.20.0000.00720.63
8.2.10.0040.00418.15
8.2.00.0040.00419.23
8.1.340.0150.00617.57
8.1.330.0110.00721.95
8.1.320.0120.00816.11
8.1.310.0150.00318.44
8.1.300.0040.01217.65
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00923.89
8.1.230.0030.00720.31
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.01017.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0040.00418.91
8.1.160.0000.00718.83
8.1.150.0000.00718.60
8.1.140.0040.00417.51
8.1.130.0000.00717.42
8.1.120.0040.00419.63
8.1.110.0070.00719.54
8.1.100.0100.00518.69
8.1.90.0100.00618.66
8.1.80.0110.00518.71
8.1.70.0130.00218.73
8.1.60.0090.00918.87
8.1.50.0110.00618.76
8.1.40.0110.00718.79
8.1.30.0120.00618.79
8.1.20.0120.00618.74
8.1.10.0130.00518.73
8.1.00.0110.00718.58
8.0.300.0090.00019.64
8.0.290.0000.00816.63
8.0.280.0000.00718.36
8.0.270.0030.00317.30
8.0.260.0030.00516.82
8.0.250.0100.00418.02
8.0.240.0120.00318.12
8.0.230.0100.00518.07
8.0.220.0120.00317.92
8.0.210.0110.00317.98
8.0.200.0110.00417.99
8.0.190.0110.00318.08
8.0.180.0050.01018.01
8.0.170.0050.00719.68
8.0.160.0070.00818.11
8.0.150.0100.00518.02
8.0.140.0110.00417.89
8.0.130.0140.00018.01
8.0.120.0100.00418.01
8.0.110.0110.00218.03
8.0.100.0070.00717.91
8.0.90.0150.00018.00
8.0.80.0120.00217.99
8.0.70.0080.00617.91
8.0.60.0140.00017.88
8.0.50.0100.00417.94
8.0.30.0120.00218.01
8.0.20.0110.00318.08
8.0.10.0110.00318.15
7.4.330.0090.00415.55
7.4.320.0110.00717.66
7.4.300.0120.00417.64
7.4.290.0140.00217.64
7.4.280.0280.00217.60
7.4.270.0160.00017.59
7.4.260.0130.00317.70
7.4.250.0130.00517.60
7.4.240.0130.00317.54
7.4.230.0110.00517.54
7.4.220.0100.00517.66
7.4.210.0140.00017.54
7.4.200.0060.00817.64
7.4.190.0090.00517.69
7.4.180.0080.00617.59
7.4.160.0080.00617.73
7.4.150.0130.00117.55
7.4.140.0100.00317.60
7.4.130.0090.00517.54
7.4.120.0110.00217.52
7.4.110.0020.00517.49
7.4.100.0020.00617.60
7.4.90.0030.00417.57
7.4.80.0000.00817.58
7.4.70.0000.00817.55
7.4.60.0040.00317.58
7.4.50.0050.00417.51
7.4.40.0060.00218.32
7.4.30.0060.00318.47
7.4.20.0020.00618.44
7.4.10.0040.00518.30
7.4.00.0070.00217.53

preferences:
82.15 ms | 1259 KiB | 5 Q