3v4l.org

run code in 300+ PHP versions simultaneously
<?php $st_array = array(); $st_data1['id'] = 1; $st_data1['title'] = 'Jane doe'; $st_data1['disk'] = '1,3,2'; array_push($st_array, $st_data1); $rc_disk_id = '1,3'; $st_data2['id'] = 2; $st_data2['title'] = 'Jane Smith'; $st_data2['disk'] = '3,1,4'; array_push($st_array, $st_data2); foreach($st_array as $st_data) { $rc_disk_ids = explode(",",$rc_disk_id); $st_disk_ids = explode(',', $st_data['disk']); $match = array_diff($rc_disk_ids, $st_disk_ids); if (empty($match)) { echo "\nFound\n"; print_r($st_data); } else { echo "Nope!"; } }

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.4.10.0090.00017.74
8.3.140.0150.00017.18
8.3.130.0040.00418.45
8.3.120.0110.00018.68
8.3.110.0040.00416.63
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0070.00316.50
8.3.70.0170.00318.31
8.3.60.0090.00616.50
8.3.50.0070.01023.68
8.3.40.0040.01118.89
8.3.30.0040.01118.73
8.3.20.0070.00021.08
8.3.10.0030.00520.34
8.3.00.0040.00420.56
8.2.260.0040.00417.12
8.2.250.0130.00716.61
8.2.240.0060.00917.07
8.2.230.0050.00320.94
8.2.220.0050.00537.54
8.2.210.0040.00426.77
8.2.200.0040.00416.75
8.2.190.0160.00016.58
8.2.180.0090.00618.41
8.2.170.0140.00722.96
8.2.160.0130.00620.42
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.08
8.2.110.0080.00419.27
8.2.100.0110.00017.91
8.2.90.0060.00317.97
8.2.80.0080.00017.63
8.2.70.0030.00517.75
8.2.60.0000.00818.05
8.2.50.0080.00018.07
8.2.40.0030.00520.94
8.2.30.0040.00419.48
8.2.20.0070.00018.10
8.2.10.0000.00719.29
8.2.00.0000.00719.38
8.1.310.0050.00316.66
8.1.300.0120.00417.57
8.1.290.0090.00018.88
8.1.280.0060.00925.92
8.1.270.0070.00022.19
8.1.260.0080.00026.35
8.1.250.0100.00328.09
8.1.240.0000.01022.59
8.1.230.0080.00420.79
8.1.220.0040.00417.74
8.1.210.0040.00418.92
8.1.200.0060.00617.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.46
8.1.160.0030.00518.93
8.1.150.0020.00518.89
8.1.140.0040.00418.85
8.1.130.0000.00721.83
8.1.120.0030.00717.47
8.1.110.0000.00817.43
8.1.100.0000.00817.47
8.1.90.0100.00017.34
8.1.80.0000.00817.46
8.1.70.0030.00517.46
8.1.60.0040.00417.62
8.1.50.0030.00517.53
8.1.40.0040.00417.41
8.1.30.0030.00517.57
8.1.20.0050.00317.53
8.1.10.0030.00917.46
8.1.00.0110.00317.53
8.0.300.0030.00320.03
8.0.290.0070.00016.63
8.0.280.0000.00718.43
8.0.270.0040.00417.95
8.0.260.0060.00019.97
8.0.250.0030.00316.89
8.0.240.0000.00816.95
8.0.230.0070.00016.83
8.0.220.0000.00716.95
8.0.210.0030.00316.86
8.0.200.0030.00316.83
8.0.190.0030.00616.96
8.0.180.0040.00416.81
8.0.170.0080.00016.87
8.0.160.0040.00416.90
8.0.150.0050.00516.78
8.0.140.0030.00616.88
8.0.130.0100.00615.11
8.0.120.0040.00516.81
8.0.110.0070.00216.88
8.0.100.0060.00616.80
8.0.90.0110.00316.86
8.0.80.0130.00316.88
8.0.70.0080.00616.71
8.0.60.0050.00916.86
8.0.50.0050.00916.88
8.0.30.0130.00516.98
8.0.20.0120.00716.91
8.0.10.0080.00716.96
8.0.00.0130.00516.96
7.4.330.0000.00515.55
7.4.320.0000.00616.64
7.4.300.0000.00616.63
7.4.290.0050.00216.51
7.4.280.0040.00416.58
7.4.270.0050.00216.41
7.4.260.0080.00816.52
7.4.250.0150.00016.46
7.4.240.0080.00316.45
7.4.230.0060.00616.57
7.4.220.0070.00716.61
7.4.210.0080.00816.58
7.4.200.0070.00516.49
7.4.190.0090.00716.62
7.4.180.0070.00716.60
7.4.160.0150.00416.67
7.4.150.0150.00016.60
7.4.140.0000.01716.43
7.4.130.0150.00416.55
7.4.120.0080.00616.51
7.4.110.0110.00516.41
7.4.100.0090.00816.49
7.4.90.0120.00316.53
7.4.80.0060.01117.90
7.4.70.0110.00416.51
7.4.60.0090.00616.39
7.4.50.0080.00916.41
7.4.40.0110.00716.32
7.4.30.0140.00816.33
7.4.20.0100.00416.48
7.4.10.0100.00716.19
7.4.00.0040.01016.39
7.3.330.0040.00616.37
7.3.320.0050.00514.71
7.3.310.0070.00716.26
7.3.300.0090.00516.23
7.3.290.0080.00616.31
7.3.280.0140.00716.33
7.3.270.0200.00316.39
7.3.260.0100.00716.23
7.3.250.0110.00416.31
7.3.240.0140.00416.37
7.3.230.0130.00516.28
7.3.220.0060.00916.16
7.3.210.0100.00616.28
7.3.200.0120.00716.22
7.3.190.0090.00616.15
7.3.180.0070.00816.34
7.3.170.0110.00616.24
7.3.160.0170.00516.19
7.3.150.0190.00216.28
7.3.140.0130.00316.26
7.3.130.0080.00916.23
7.3.120.0150.00516.28
7.3.110.0090.01216.10
7.3.100.0170.00316.11
7.3.90.0120.00816.40
7.3.80.0140.00916.25
7.3.70.0120.00716.17
7.3.60.0140.00616.24
7.3.50.0150.00816.37
7.3.40.0150.00816.40
7.3.30.0130.00816.41
7.3.20.0110.01117.23
7.3.10.0140.00617.21
7.3.00.0150.00517.13
7.2.340.0200.00316.20
7.2.330.0110.01216.55
7.2.320.0130.00916.43
7.2.310.0140.00616.55
7.2.300.0190.00216.30
7.2.290.0140.00816.49
7.2.280.0140.00816.32
7.2.270.0160.00616.38
7.2.260.0140.00916.46
7.2.250.0120.00916.35
7.2.240.0110.01016.43
7.2.230.0170.00416.52
7.2.220.0130.01016.46
7.2.210.0120.00916.52
7.2.200.0160.00616.50
7.2.190.0130.00816.48
7.2.180.0120.01116.47
7.2.170.0150.00616.51
7.2.160.0120.00916.69
7.2.150.0150.00717.50
7.2.140.0160.00517.43
7.2.130.0140.00717.72
7.2.120.0150.00917.38
7.2.110.0110.01017.64
7.2.100.0180.00317.36
7.2.90.0250.00417.54
7.2.80.0140.00717.56
7.2.70.0170.00717.51
7.2.60.0160.00717.56
7.2.50.0150.00817.44
7.2.40.0120.00917.60
7.2.30.0090.01417.32
7.2.20.0100.01117.56
7.2.10.0220.00717.36
7.2.00.0100.00917.58

preferences:
71.52 ms | 403 KiB | 5 Q