3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'content_type' => [ 'story', 'delhi', 'tez' ], 'type' => [ 'video_id', 'subcategory', 'story_id' ], 'fetch_id' => [ 32, 32, 2 ], 'order' => [ 6, 4, 5 ], 'label' => [ 'dsfs fdsf dsf sdf', 'dfsdfs', 'sdfsdfsd' ], 'link' => [ 'fsd fsdf sdf', 'fsdfsdfdsf', 'fsdfdsfds' ], 'record' => [ 10, 8, 12 ] ]; array_multisort( $array['order'], $array['content_type'], $array['type'], $array['fetch_id'], $array['label'], $array['link'], $array['record'] ); var_export($array);
Output for 8.1.32, 8.2.0 - 8.2.29, 8.3.0 - 8.3.28, 8.4.1 - 8.4.14, 8.5.0
array ( 'content_type' => array ( 0 => 'delhi', 1 => 'tez', 2 => 'story', ), 'type' => array ( 0 => 'subcategory', 1 => 'story_id', 2 => 'video_id', ), 'fetch_id' => array ( 0 => 32, 1 => 2, 2 => 32, ), 'order' => array ( 0 => 4, 1 => 5, 2 => 6, ), 'label' => array ( 0 => 'dfsdfs', 1 => 'sdfsdfsd', 2 => 'dsfs fdsf dsf sdf', ), 'link' => array ( 0 => 'fsdfsdfdsf', 1 => 'fsdfdsfds', 2 => 'fsd fsdf sdf', ), 'record' => array ( 0 => 8, 1 => 12, 2 => 10, ), )
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.

preferences:
47.63 ms | 408 KiB | 5 Q