3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( array ( 'Rank' => 422, 'id' => array ( 0 => 152091 ), 'Condition' => array ( 0 => 'Depression', 1 => 'Ketamine' ), 'BriefTitle' => array ( 0 => 'Positron Emission Tomography Assessment of Ketamine Binding of the Serotonin Transporter' ), 'LocationCountry' => array ( 0 => 'Austria' ), 'StartDate' => array ( 0 => 'May 5, 2016' ), 'LastUpdatePostDate' => array ( 0 => 'October 15, 2018' ), 'Entheogen' => 'ketamine', 'Source' => 'clinicaltrials.gov' ), array ( 'Rank' => 6673, 'id' => array ( 0 => 'YSBSZ18291' ), 'Condition' => array ( 0 => 'DepressiveDisorder', 1 => 'Ketamine' ), 'BriefTitle' => array ( 0 => 'Positron Emission Tomography assessment of Ketamine Binding of the Serotonin Transporter and its Relevance for Rapid Antidepressant Response', 1 => 'Die Rolle des Serotonintransporters bei der akuten antidepressiven Wirkung von Ketamin, untersucht mit Positronen-Emissions-Tomographie' ), 'LocationCountry' => array ( 0 => 'Austria' ), 'StartDate' => array ( 0 => '2016 05 01' ), 'LastUpdatePostDate' => array ( 0 => '2018 10 15' ), 'Entheogen' => 'ketamine', 'Source' => 'clinicaltrialsregister.eu' ) ); $result = array(); $brieftitles = array(); foreach ($array as $arr) { $foundtitle = false; $title = $arr['BriefTitle'][0]; foreach ($brieftitles as $btitle) { $foundtitle = (stripos($title, $btitle) !== false) || (stripos($btitle, $title) !== false); if ($foundtitle) break; } if (!$foundtitle) { $result[] = $arr; $brieftitles[] = $arr['BriefTitle'][0]; } } 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.00.0130.01020.07
8.4.150.0020.00014.05
8.4.140.0130.00817.47
8.4.130.0120.00717.69
8.4.120.0090.01022.25
8.4.110.0120.00822.23
8.4.100.0130.00817.68
8.4.90.0130.00620.40
8.4.80.0060.00618.74
8.4.70.0070.00820.55
8.4.60.0100.00520.64
8.4.50.0120.00818.75
8.4.40.0100.01017.71
8.4.30.0130.00618.81
8.4.20.0130.00718.93
8.4.10.0100.01019.45
8.3.280.0180.00718.31
8.3.270.0130.00716.57
8.3.260.0060.00316.38
8.3.250.0110.00818.73
8.3.240.0060.01216.65
8.3.230.0110.00416.75
8.3.220.0050.00320.89
8.3.210.0100.00816.53
8.3.200.0040.00516.38
8.3.190.0090.00717.37
8.3.180.0090.01018.24
8.3.170.0050.00317.05
8.3.160.0080.01116.56
8.3.150.0060.00316.46
8.3.140.0040.01419.08
8.3.130.0100.00316.62
8.3.120.0060.00318.81
8.3.110.0040.00416.63
8.3.100.0070.01024.06
8.3.90.0080.00026.77
8.3.80.0060.00318.68
8.3.70.0140.00016.75
8.3.60.0170.00318.43
8.3.50.0090.00824.42
8.3.40.0040.01818.68
8.3.30.0070.00719.48
8.3.20.0000.00721.95
8.3.10.0000.00720.25
8.3.00.0080.00021.91
8.2.290.0090.00920.65
8.2.280.0060.01020.29
8.2.270.0140.00416.49
8.2.260.0040.01116.21
8.2.250.0030.00516.73
8.2.240.0030.01218.89
8.2.230.0070.01020.94
8.2.220.0090.00037.54
8.2.210.0090.00026.77
8.2.200.0030.00616.75
8.2.190.0040.01116.58
8.2.180.0040.01125.92
8.2.170.0170.00319.13
8.2.160.0070.00722.12
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0050.00326.16
8.2.110.0070.00322.13
8.2.100.0030.00917.78
8.2.90.0040.00418.03
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0080.00017.50
8.2.50.0000.00817.63
8.2.40.0050.00317.63
8.2.30.0000.00818.05
8.2.20.0070.00018.13
8.2.10.0040.00419.24
8.2.00.0050.00319.19
8.1.330.0090.01021.95
8.1.320.0110.00916.24
8.1.310.0060.00316.16
8.1.300.0050.00318.29
8.1.290.0090.00030.84
8.1.280.0170.00325.92
8.1.270.0080.00020.73
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0090.00022.61
8.1.230.0110.00020.93
8.1.220.0060.00317.88
8.1.210.0040.00418.97
8.1.200.0000.00817.22
8.1.190.0000.00817.23
8.1.180.0090.00018.10
8.1.170.0100.00020.32
8.1.160.0040.00418.86
8.1.150.0040.00318.89
8.1.140.0000.00718.78
8.1.130.0030.00317.46
8.1.120.0000.00817.48
8.1.110.0000.00717.35
8.1.100.0040.00417.52
8.1.90.0070.00017.41
8.1.80.0040.00417.36
8.1.70.0000.00717.48
8.1.60.0060.00317.59
8.1.50.0000.00917.46
8.1.40.0050.00317.46
8.1.30.0000.00817.68
8.1.20.0070.00317.55
8.1.10.0040.00417.42
8.1.00.0030.00917.42
8.0.300.0000.00819.89
8.0.290.0050.00317.18
8.0.280.0030.00318.44
8.0.270.0030.00317.97
8.0.260.0080.00016.83
8.0.250.0070.00016.87
8.0.240.0000.00716.88
8.0.230.0050.00216.84
8.0.220.0000.00716.92
8.0.210.0040.00416.89
8.0.200.0060.00316.82
8.0.190.0040.00416.85
8.0.180.0040.00416.94
8.0.170.0000.00916.90
8.0.160.0040.00416.80
8.0.150.0060.00316.80
8.0.140.0040.00416.86
8.0.130.0030.00313.37
8.0.120.0030.00616.90
8.0.110.0040.00416.90
8.0.100.0030.00316.80
8.0.90.0090.00016.89
8.0.80.0050.01216.88
8.0.70.0000.00716.94
8.0.60.0040.00416.74
8.0.50.0030.00516.96
8.0.30.0110.01117.05
8.0.20.0110.00817.13
8.0.10.0030.00516.89
8.0.00.0060.01316.95
7.4.330.0020.00215.55
7.4.320.0030.00316.51
7.4.300.0030.00316.66
7.4.290.0000.00716.63
7.4.280.0080.00316.63
7.4.270.0040.00416.63
7.4.260.0030.00313.30
7.4.250.0070.00016.59
7.4.240.0030.00416.55
7.4.230.0000.00716.70
7.4.220.0000.00716.68
7.4.210.0040.01016.48
7.4.200.0000.00716.35
7.4.130.0130.00716.51
7.4.120.0220.00316.68
7.4.110.0100.00716.53
7.4.100.0140.00916.54
7.4.90.0130.00316.68
7.4.80.0130.00619.39
7.4.70.0000.01616.64
7.4.60.0040.01816.55
7.4.50.0090.00916.52
7.4.40.0240.01116.44
7.4.30.0270.00616.44
7.4.20.0260.00916.52
7.4.10.0140.01316.69
7.4.00.0140.00716.30
7.3.330.0070.00016.41
7.3.320.0030.00313.19
7.3.310.0030.00316.36
7.3.300.0000.00716.24
7.3.290.0110.00516.38
7.3.260.0070.01516.44
7.3.230.0140.00416.37
7.3.210.0150.00416.42
7.3.200.0070.01316.45
7.3.190.0100.00616.32
7.3.180.0060.00916.33
7.3.170.0280.01216.64
7.3.160.0250.01616.21
7.3.150.0230.01116.50
7.3.140.0190.01016.43
7.3.130.0180.01416.61
7.3.120.0230.00916.25
7.3.110.0230.01116.43
7.3.100.0230.00916.20
7.3.90.0250.01116.56
7.3.80.0290.00616.30
7.3.70.0290.00316.57
7.3.60.0140.01816.49
7.3.50.0250.01116.58
7.3.40.0240.01216.44
7.3.30.0200.01216.49
7.3.20.0140.02116.54
7.3.10.0220.01216.41
7.3.00.0220.01516.20
7.2.330.0130.00316.69
7.2.320.0060.01616.37
7.2.310.0160.00916.79
7.2.300.0060.01516.45
7.2.290.0260.00916.50
7.2.280.0270.00816.46
7.2.270.0280.00516.54
7.2.260.0190.01416.59
7.2.250.0280.00316.72
7.2.240.0280.00316.79
7.2.230.0140.01716.53
7.2.220.0220.00916.41
7.2.210.0230.01016.49
7.2.200.0270.00416.42
7.2.190.0190.01516.45
7.2.180.0280.00716.66
7.2.170.0240.01216.63
7.2.160.0220.00916.69
7.2.150.0290.00416.60
7.2.140.0200.01416.68
7.2.130.0300.00616.66
7.2.120.0510.01416.70
7.2.110.0210.01516.70
7.2.100.0190.01016.80
7.2.90.0190.00716.71
7.2.80.0130.01316.68
7.2.70.0190.00616.52
7.2.60.0150.00916.61
7.2.50.0090.01316.74
7.2.40.0100.01716.64
7.2.30.0180.00916.73
7.2.20.0090.01516.52
7.2.10.0200.00316.63
7.2.00.0120.01216.52

preferences:
30.39 ms | 403 KiB | 5 Q