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 (isset($record['record_type'])) { return $record['record_type'] != "NS"; } return null; } ); 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.5.30.0110.00719.64
8.5.20.0110.00619.58
8.5.10.0120.00816.81
8.5.00.0150.00819.77
8.4.180.0170.00719.73
8.4.170.0110.01320.36
8.4.160.0130.01022.20
8.4.150.0080.00416.79
8.4.140.0120.01017.37
8.4.130.0140.00618.84
8.4.120.0100.01024.10
8.4.110.0130.00722.61
8.4.100.0150.00617.73
8.4.90.0130.00620.79
8.4.80.0050.00318.98
8.4.70.0130.00917.70
8.4.60.0150.00617.79
8.4.50.0110.01019.57
8.4.40.0060.00919.50
8.4.30.0040.01520.39
8.4.20.0060.00318.80
8.4.10.0040.00417.52
8.3.300.0130.00620.93
8.3.290.0110.00820.97
8.3.280.0120.00718.51
8.3.270.0100.01016.46
8.3.260.0070.01116.63
8.3.250.0060.01218.97
8.3.240.0140.00418.83
8.3.230.0120.00816.78
8.3.220.0080.01019.14
8.3.210.0060.00316.77
8.3.200.0090.01016.66
8.3.190.0090.00916.43
8.3.180.0090.01016.49
8.3.170.0130.00617.18
8.3.160.0140.00416.67
8.3.150.0130.00717.13
8.3.140.0000.00817.12
8.3.130.0050.00318.39
8.3.120.0090.00619.02
8.3.110.0060.00920.94
8.3.100.0030.00624.06
8.3.90.0050.00326.77
8.3.80.0030.00616.50
8.3.70.0070.00718.15
8.3.60.0090.00616.63
8.3.50.0060.00816.32
8.3.40.0130.00318.67
8.3.30.0040.01118.59
8.3.20.0070.00324.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.300.0130.00622.16
8.2.290.0120.00720.40
8.2.280.0070.01118.23
8.2.270.0140.00417.18
8.2.260.0050.00318.56
8.2.250.0040.01118.98
8.2.240.0030.00516.84
8.2.230.0080.00022.58
8.2.220.0060.01537.54
8.2.210.0120.00926.77
8.2.200.0070.00316.75
8.2.190.0120.00916.58
8.2.180.0080.00825.92
8.2.170.0150.00019.09
8.2.160.0040.00922.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.66
8.2.110.0070.00322.23
8.2.100.0080.00417.78
8.2.90.0030.00517.84
8.2.80.0030.00519.15
8.2.70.0050.00517.88
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0050.00321.20
8.2.30.0000.00719.36
8.2.20.0040.00418.15
8.2.10.0040.00419.32
8.2.00.0040.00419.24
8.1.340.0100.00917.77
8.1.330.0100.00822.01
8.1.320.0100.00915.96
8.1.310.0070.01018.68
8.1.300.0070.00416.25
8.1.290.0090.00630.84
8.1.280.0120.00925.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0060.00322.61
8.1.230.0080.00320.88
8.1.220.0040.00417.74
8.1.210.0000.00818.79
8.1.200.0040.00817.35
8.1.190.0050.00317.22
8.1.180.0080.00018.10
8.1.170.0040.00418.64
8.1.160.0040.00420.74
8.1.150.0050.00318.86
8.1.140.0000.00719.02
8.1.130.0030.00320.07
8.1.120.0080.00017.39
8.1.110.0040.00417.48
8.1.100.0030.00317.51
8.1.90.0080.00017.48
8.1.80.0040.00417.49
8.1.70.0080.00017.38
8.1.60.0000.00817.66
8.1.50.0000.00817.56
8.1.40.0060.00317.48
8.1.30.0040.00417.67
8.1.20.0030.00617.61
8.1.10.0040.00417.42
8.1.00.0000.00817.47
8.0.300.0000.00720.13
8.0.290.0060.00316.63
8.0.280.0000.00718.44
8.0.270.0060.00316.79
8.0.260.0060.00318.48
8.0.250.0000.00716.86
8.0.240.0000.00716.86
8.0.230.0030.00316.88
8.0.220.0040.00416.73
8.0.210.0050.00216.75
8.0.200.0000.00716.88
8.0.190.0090.00016.99
8.0.180.0040.00416.96
8.0.170.0000.00916.98
8.0.160.0000.00816.81
8.0.150.0000.00816.93
8.0.140.0070.00016.93
8.0.130.0030.00313.36
8.0.120.0040.00416.95
8.0.110.0040.00416.95
8.0.100.0080.00016.88
8.0.90.0020.00516.82
8.0.80.0110.00816.88
8.0.70.0050.00216.91
8.0.60.0000.00816.92
8.0.50.0020.00516.90
8.0.30.0070.01016.98
8.0.20.0060.00916.93
8.0.10.0120.00316.98
8.0.00.0110.00317.11
7.4.330.0000.00515.55
7.4.320.0000.00616.46
7.4.300.0030.00316.64
7.4.290.0040.00416.44
7.4.280.0040.00416.47
7.4.270.0000.00716.46
7.4.260.0050.00013.29
7.4.250.0030.00516.43
7.4.240.0040.00416.68
7.4.230.0020.00516.66
7.4.220.0040.00316.72
7.4.210.0030.00916.48
7.4.200.0030.00316.72
7.4.160.0070.00716.69
7.4.150.0000.01416.56
7.4.140.0110.00416.53
7.4.130.0110.00716.35
7.4.120.0120.00616.31
7.4.110.0120.00916.49
7.4.100.0140.00716.58
7.4.90.0090.00616.52
7.4.80.0130.00616.50
7.4.70.0040.01616.45
7.4.60.0080.00816.58
7.4.50.0080.00816.40
7.4.40.0000.01316.22
7.4.30.0070.01016.52
7.4.20.0040.01116.53
7.4.10.0090.00616.42
7.4.00.0100.00316.54
7.3.330.0030.00316.42
7.3.320.0030.00313.24
7.3.310.0000.00716.44
7.3.300.0020.00516.38
7.3.290.0080.00816.31
7.3.280.0090.00616.25
7.3.270.0000.01316.33
7.3.260.0070.00716.38
7.3.250.0030.01316.28
7.3.240.0100.01016.26
7.3.230.0100.01016.30
7.3.220.0000.01416.27
7.3.210.0120.00316.24
7.3.200.0000.01616.24
7.3.190.0060.01516.27
7.3.180.0040.01216.23
7.3.170.0130.00016.27
7.3.160.0070.00716.21
7.3.150.0050.00816.15
7.3.140.0100.00316.21
7.3.130.0100.00316.36
7.3.120.0030.01016.33
7.3.110.0030.01016.25
7.3.100.0060.01316.21
7.3.90.0070.00716.53
7.3.80.0120.00616.27
7.3.70.0070.00716.36
7.3.60.0070.01016.49
7.3.50.0120.00316.43
7.3.40.0060.01316.44
7.3.30.0030.01516.41
7.3.20.0040.01116.43
7.3.10.0090.00616.30
7.3.00.0070.01116.40

preferences:
59.17 ms | 1444 KiB | 5 Q