3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ [ 'type' => 'comment', "line_index" => 0, "text_b64" => "OyBjUGFuZWwgZmlyc3Q6ODguMC4xMiAodXBkYXRlX3RpbWUpOjE2MTg1NDYxNDIgQ3BhbmVsOjpab25lRmlsZTo6VkVSU0lPTjoxLjMgaG9zdG5hbWU6cjExOC5sb24yLm15c2VjdXJlY2xvdWRob3N0LmNvbSBs", ], [ "line_index" => 1, "text_b64" => "OyBab25lIGZpbGUgZm9yIG9ha3RyZWVkZW50YWxtb3J0aW1lci5jby51aw==", "type" => "comment", ], [ "text_b64" => "JFRUTCAxNDQwMA==", "line_index" => 2, "type" => "control", ], [ "line_index" => 3, "dname_b64" => "b2FrdHJlZWRlbnRhbG1vcnRpbWVyLmNvLnVrLg==", "record_type" => "SOA", "ttl" => 30, "type" => "record", "data_b64" => [], ], [ "dname_b64" => "b2FrdHJlZWRlbnRhbG1vcnRpbWVyLmNvLnVrLg==", "line_index" => 10, "record_type" => "NS", "ttl" => 30, "type" => "record", "data_b64" => [], ], [ "ttl" => 30, "dname_b64" => "b2FrdHJlZWRlbnRhbG1vcnRpbWVyLmNvLnVrLg==", "line_index" => 11, "record_type" => "NS", "data_b64" => [], "type" => "record", ], ]; $result = array_filter( $arr, function (array $record) { if ($record['type'] == 'record') { return true; } return false; } ); print_r($result);

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.4.140.0140.00717.58
8.4.130.0040.00723.76
8.4.120.0120.00818.50
8.4.110.0130.00619.00
8.4.100.0110.00617.87
8.4.90.0120.00820.35
8.4.80.0130.00717.68
8.4.70.0130.00817.76
8.4.60.0150.00719.40
8.4.50.0120.00819.66
8.4.40.0130.00719.63
8.4.30.0040.00418.72
8.4.20.0130.00718.66
8.4.10.0030.00617.47
8.3.270.0140.00716.52
8.3.260.0150.00416.36
8.3.250.0130.00616.77
8.3.240.0100.00916.63
8.3.230.0110.00816.57
8.3.220.0110.00719.02
8.3.210.0070.01016.56
8.3.200.0150.00416.53
8.3.190.0140.00518.52
8.3.180.0110.01020.43
8.3.170.0150.00419.08
8.3.160.0090.00919.06
8.3.150.0130.00618.90
8.3.140.0060.00317.24
8.3.130.0030.00618.29
8.3.120.0050.00320.56
8.3.110.0040.00420.94
8.3.100.0110.00424.06
8.3.90.0030.01326.77
8.3.80.0040.00419.36
8.3.70.0110.00416.58
8.3.60.0110.01118.43
8.3.50.0110.00416.59
8.3.40.0120.00318.69
8.3.30.0040.01118.67
8.3.20.0040.00424.18
8.3.10.0060.00924.66
8.3.00.0080.00026.16
8.2.290.0150.00418.91
8.2.280.0100.00918.56
8.2.270.0100.00717.34
8.2.260.0070.01118.56
8.2.250.0130.00618.56
8.2.240.0070.00416.89
8.2.230.0120.00322.58
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0040.00418.88
8.2.190.0120.00316.59
8.2.180.0140.00025.92
8.2.170.0040.01219.11
8.2.160.0030.01022.96
8.2.150.0000.00725.66
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00419.95
8.2.110.0190.00320.38
8.2.100.0060.00619.25
8.2.90.0040.00420.44
8.2.80.0000.00818.91
8.2.70.0050.00317.50
8.2.60.0050.00317.91
8.2.50.0000.00818.05
8.2.40.0000.00718.22
8.2.30.0050.00218.09
8.2.20.0000.00718.09
8.2.10.0040.00419.29
8.2.00.0040.00419.38
8.1.330.0110.00718.42
8.1.320.0090.01016.27
8.1.310.0030.01018.63
8.1.300.0090.00618.68
8.1.290.0040.00430.84
8.1.280.0110.01125.92
8.1.270.0050.00223.99
8.1.260.0000.00828.09
8.1.250.0000.00728.09
8.1.240.0080.00020.94
8.1.230.0110.00021.02
8.1.220.0040.00417.74
8.1.210.0000.00818.93
8.1.200.0070.00317.35
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0000.00818.45
8.1.160.0030.00518.91
8.1.150.0030.00518.91
8.1.140.0000.00718.98
8.1.130.0000.00820.16
8.1.120.0040.00417.39
8.1.110.0030.00617.36
8.1.100.0050.00217.34
8.1.90.0070.00017.39
8.1.80.0030.00617.44
8.1.70.0070.00017.34
8.1.60.0030.00717.63
8.1.50.0030.00617.50
8.1.40.0000.00817.51
8.1.30.0000.00817.64
8.1.20.0000.00717.70
8.1.10.0040.00417.43
8.1.00.0040.00417.46
8.0.300.0000.00820.08
8.0.290.0000.00716.75
8.0.280.0030.00318.40
8.0.270.0030.00317.92
8.0.260.0040.00418.59
8.0.250.0030.00316.83
8.0.240.0030.00316.91
8.0.230.0000.00716.75
8.0.220.0000.00716.85
8.0.210.0030.00316.74
8.0.200.0000.00616.95
8.0.190.0030.00517.00
8.0.180.0000.00716.83
8.0.170.0090.00016.95
8.0.160.0000.00816.80
8.0.150.0040.00416.90
8.0.140.0000.00716.82
8.0.130.0000.00513.40
8.0.120.0000.00816.90
8.0.110.0030.00516.75
8.0.100.0090.00016.69
8.0.90.0040.00416.95
8.0.80.0090.00916.89
8.0.70.0060.00317.02
8.0.60.0070.00016.79
8.0.50.0050.00216.91
8.0.30.0040.01116.86
8.0.20.0170.01316.93
8.0.10.0190.01116.92
8.0.00.0130.01316.95
7.4.330.0000.00515.55
7.4.320.0070.00016.50
7.4.300.0000.00616.51
7.4.290.0080.00016.39
7.4.280.0040.00416.64
7.4.270.0030.00316.54
7.4.260.0030.00313.30
7.4.250.0040.00416.48
7.4.240.0030.00316.46
7.4.230.0000.00716.57
7.4.220.0030.00316.57
7.4.210.0060.00916.54
7.4.200.0000.00816.70
7.4.160.0220.00816.55
7.4.150.0250.00616.40
7.4.140.0240.00616.47
7.4.130.0110.01116.44
7.4.120.0180.00916.37
7.4.110.0150.00716.34
7.4.100.0230.00016.68
7.4.90.0150.00616.39
7.4.80.0050.01816.36
7.4.70.0140.00516.42
7.4.60.0150.00516.59
7.4.50.0080.01216.40
7.4.40.0160.00416.46
7.4.30.0090.01216.46
7.4.20.0160.00716.44
7.4.10.0090.01316.27
7.4.00.0070.01116.35
7.3.330.0030.00316.19
7.3.320.0000.00513.23
7.3.310.0070.00016.16
7.3.300.0030.00316.34
7.3.290.0060.01216.21
7.3.280.0230.00616.16
7.3.270.0160.01316.20
7.3.260.0240.00316.25
7.3.250.0180.00616.18
7.3.240.0120.00616.18
7.3.230.0170.00716.17
7.3.220.0140.00916.21
7.3.210.0130.00916.20
7.3.200.0100.01016.34
7.3.190.0110.00716.36
7.3.180.0110.00716.21
7.3.170.0090.01016.17
7.3.160.0150.00916.21
7.3.150.0100.00916.23
7.3.140.0040.01616.26
7.3.130.0120.01016.23
7.3.120.0070.01116.25
7.3.110.0130.00616.11
7.3.100.0140.00716.19
7.3.90.0150.01016.43
7.3.80.0080.01216.20
7.3.70.0260.00916.29
7.3.60.0120.00916.41
7.3.50.0060.01716.33
7.3.40.0210.00616.29
7.3.30.0160.00516.36
7.3.20.0770.00716.39
7.3.10.0110.01116.37
7.3.00.0290.00616.30

preferences:
139.81 ms | 403 KiB | 5 Q