3v4l.org

run code in 300+ PHP versions simultaneously
<?php $new_order = [ 'PHOTOS', 'VIDEOS', 'DOCUMENTS' ]; $downloads = [ ['type' => 'PHOTOS'], ['type' => 'DOCUMENTS'], ['type' => 'DOCUMENTS'], //['type' => 'VIDEOS'], ['type' => 'PHOTOS'], ]; var_export( array_intersect( $new_order, array_column($downloads, 'type') ) );

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.3.70.0070.01116.25
8.3.60.0100.01016.63
8.3.50.0060.01216.59
8.3.40.0080.00820.34
8.3.30.0090.00618.58
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0060.00326.16
8.2.190.0040.01116.58
8.2.180.0120.00616.75
8.2.170.0170.00318.82
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0060.00319.32
8.2.100.0080.00417.66
8.2.90.0030.00617.47
8.2.80.0030.00618.79
8.2.70.0040.00417.46
8.2.60.0050.00217.38
8.2.50.0040.00417.55
8.2.40.0080.00417.62
8.2.30.0000.00717.67
8.2.20.0070.00019.09
8.2.10.0000.00717.88
8.2.00.0030.00619.39
8.1.280.0140.00725.92
8.1.270.0130.00624.66
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00719.32
8.1.230.0110.00020.92
8.1.220.0080.00018.52
8.1.210.0050.00318.77
8.1.200.0080.00017.23
8.1.190.0040.00417.53
8.1.180.0080.00018.10
8.1.170.0080.00017.62
8.1.160.0050.00218.74
8.1.150.0040.00418.56
8.1.140.0040.00417.30
8.1.130.0050.00519.11
8.1.120.0000.00819.15
8.1.110.0060.00319.12
8.1.100.0030.00519.14
8.1.90.0030.00519.22
8.1.80.0080.00019.29
8.1.70.0030.00619.15
8.1.60.0080.00219.28
8.1.50.0110.00019.21
8.1.40.0030.00719.29
8.1.30.0050.00519.35
8.1.20.0070.00319.28
8.1.10.0030.00719.11
8.1.00.0000.00919.06
8.0.300.0060.00318.77
8.0.290.0040.00416.58
8.0.280.0000.00717.90
8.0.270.0030.00317.86
8.0.260.0050.00318.55
8.0.250.0070.00018.48
8.0.240.0050.00318.61
8.0.230.0040.00418.63
8.0.220.0040.00418.54
8.0.210.0070.00018.54
8.0.200.0000.00818.50
8.0.190.0040.00418.54
8.0.180.0070.00018.51
8.0.170.0000.00718.60
8.0.160.0070.00018.54
8.0.150.0040.00418.52
8.0.140.0070.00018.54
8.0.130.0040.00418.45
8.0.120.0050.00218.64
8.0.110.0040.00418.46
8.0.100.0000.00718.57
8.0.90.0070.00018.43
8.0.80.0080.00018.45
8.0.70.0000.00718.53
8.0.60.0030.00518.59
8.0.50.0040.00418.53
8.0.30.0040.00418.53
8.0.20.0040.00418.47
8.0.10.0000.00718.67

preferences:
22.59 ms | 401 KiB | 5 Q