3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = get_defined_functions(); $funcs = $f['internal']; print_r(array_slice($funcs, 0, 20));
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Array ( [0] => zend_version [1] => func_num_args [2] => func_get_arg [3] => func_get_args [4] => strlen [5] => strcmp [6] => strncmp [7] => strcasecmp [8] => strncasecmp [9] => error_reporting [10] => define [11] => defined [12] => get_class [13] => get_called_class [14] => get_parent_class [15] => is_subclass_of [16] => is_a [17] => get_class_vars [18] => get_object_vars [19] => get_mangled_object_vars )
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.36, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Array ( [0] => zend_version [1] => func_num_args [2] => func_get_arg [3] => func_get_args [4] => strlen [5] => strcmp [6] => strncmp [7] => strcasecmp [8] => strncasecmp [9] => each [10] => error_reporting [11] => define [12] => defined [13] => get_class [14] => get_called_class [15] => get_parent_class [16] => method_exists [17] => property_exists [18] => class_exists [19] => interface_exists )
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Array ( [0] => zend_version [1] => func_num_args [2] => func_get_arg [3] => func_get_args [4] => strlen [5] => strcmp [6] => strncmp [7] => strcasecmp [8] => strncasecmp [9] => each [10] => error_reporting [11] => define [12] => defined [13] => get_class [14] => get_parent_class [15] => method_exists [16] => property_exists [17] => class_exists [18] => interface_exists [19] => function_exists )
Output for 5.0.2 - 5.0.5
Array ( [0] => zend_version [1] => func_num_args [2] => func_get_arg [3] => func_get_args [4] => strlen [5] => strcmp [6] => strncmp [7] => strcasecmp [8] => strncasecmp [9] => each [10] => error_reporting [11] => define [12] => defined [13] => get_class [14] => get_parent_class [15] => method_exists [16] => class_exists [17] => interface_exists [18] => function_exists [19] => get_included_files )
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.1
Array ( [0] => zend_version [1] => func_num_args [2] => func_get_arg [3] => func_get_args [4] => strlen [5] => strcmp [6] => strncmp [7] => strcasecmp [8] => strncasecmp [9] => each [10] => error_reporting [11] => define [12] => defined [13] => get_class [14] => get_parent_class [15] => method_exists [16] => class_exists [17] => function_exists [18] => get_included_files [19] => get_required_files )

preferences:
277.77 ms | 402 KiB | 371 Q