3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dots_arr=array(); $row_array = array();$row_array['ip'] = '1.1.1.1';$row_array['dip'] = '2.2.2.2';array_push($dots_arr,$row_array); $row_array = array();$row_array['ip'] = '2.1.1.1';$row_array['dip'] = '1.2.2.2';array_push($dots_arr,$row_array); $row_array = array();$row_array['ip'] = '1.1.1.1';$row_array['dip'] = '2.2.2.2';array_push($dots_arr,$row_array); $row_array = array();$row_array['ip'] = '3.1.1.1';$row_array['dip'] = '1.2.2.2';array_push($dots_arr,$row_array); print_r($dots_arr); $sub_dots=array('sip'=>'1.1.1.1'); $sip='1.1.1.1'; foreach($dots_arr as $key => $row) { if(strcmp($row['ip'],'1.1.1.1')==0){ print $key; unset($dots_arr[$key]); } } print_r($dots_arr); ?>

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.0090.00918.13
8.3.60.0140.00416.63
8.3.50.0090.01121.21
8.3.40.0070.00718.70
8.3.30.0110.00418.89
8.3.20.0000.00720.21
8.3.10.0000.00820.66
8.3.00.0070.00723.52
8.2.190.0070.01116.88
8.2.180.0070.01016.75
8.2.170.0120.00322.96
8.2.160.0110.00319.37
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00422.20
8.2.120.0050.00326.35
8.2.110.0090.00022.15
8.2.100.0070.00317.84
8.2.90.0000.00819.35
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0040.00417.93
8.2.50.0030.00618.16
8.2.40.0080.00020.63
8.2.30.0040.00419.38
8.2.20.0030.00518.20
8.2.10.0030.00518.07
8.2.00.0000.00917.63
8.1.280.0180.00025.92
8.1.270.0000.00823.84
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0070.00321.37
8.1.230.0040.00720.32
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0080.00017.35
8.1.180.0030.00618.10
8.1.170.0030.00618.71
8.1.160.0030.00322.06
8.1.150.0040.00418.89
8.1.140.0070.00019.50
8.1.130.0040.00417.75
8.1.120.0050.00217.35
8.1.110.0000.00717.46
8.1.100.0050.00517.52
8.1.90.0070.00017.37
8.1.80.0000.00817.45
8.1.70.0030.00317.46
8.1.60.0030.00517.64
8.1.50.0040.00417.46
8.1.40.0040.00417.49
8.1.30.0040.00717.58
8.1.20.0040.00417.65
8.1.10.0000.00817.52
8.1.00.0030.00517.38
8.0.300.0000.00719.28
8.0.290.0040.00416.75
8.0.280.0050.00318.49
8.0.270.0030.00317.26
8.0.260.0030.00317.27
8.0.250.0030.00317.02
8.0.240.0030.00516.89
8.0.230.0000.00716.88
8.0.220.0070.00016.86
8.0.210.0030.00316.91
8.0.200.0030.00316.87
8.0.190.0000.00816.87
8.0.180.0030.00716.91
8.0.170.0040.00416.90
8.0.160.0040.00416.82
8.0.150.0000.00716.68
8.0.140.0040.00416.81
8.0.130.0030.00313.26
8.0.120.0060.00316.85
8.0.110.0040.00416.73
8.0.100.0070.00016.94
8.0.90.0070.00016.79
8.0.80.0070.01116.86
8.0.70.0000.00916.89
8.0.60.0000.00816.75
8.0.50.0080.00016.96
8.0.30.0070.01217.00
8.0.20.0090.01117.40
8.0.10.0000.00716.99
8.0.00.0060.01216.70
7.4.330.0030.00315.08
7.4.320.0060.00016.60
7.4.300.0030.00316.66
7.4.290.0040.00416.55
7.4.280.0080.00016.41
7.4.270.0000.00716.59
7.4.260.0000.00816.59
7.4.250.0000.00816.56
7.4.240.0050.00216.65
7.4.230.0000.00816.68
7.4.220.0060.01316.55
7.4.210.0130.00516.57
7.4.200.0000.00816.44
7.4.160.0050.01116.56
7.4.150.0070.01017.40
7.4.140.0100.01017.86
7.4.130.0140.00516.58
7.4.120.0140.00316.62
7.4.110.0210.00616.61
7.4.100.0120.00616.44
7.4.90.0090.00916.42
7.4.80.0170.00319.39
7.4.70.0080.00816.64
7.4.60.0110.00616.52
7.4.50.0050.01016.42
7.4.40.0100.00616.26
7.4.30.0110.00716.07
7.4.20.0090.00916.14
7.4.10.0120.00416.25
7.4.00.0060.01015.89
7.3.330.0020.00213.08
7.3.320.0030.00313.17
7.3.310.0040.00416.20
7.3.300.0040.00416.24
7.3.290.0000.00716.26
7.3.280.0110.00716.33
7.3.270.0040.01317.40
7.3.260.0110.00816.49
7.3.250.0110.00616.51
7.3.240.0100.01016.38
7.3.230.0080.00816.61
7.3.210.0060.01216.61
7.3.200.0060.01316.40
7.3.190.0090.00616.64
7.3.180.0100.00816.41
7.3.170.0110.00416.23
7.3.160.0040.01216.43
7.3.150.0040.01216.71
7.3.140.0080.00716.27
7.3.130.0060.00916.20
7.3.120.0110.00416.45
7.3.110.0090.00616.53
7.3.100.0100.00616.41
7.3.90.0060.00916.55
7.3.80.0100.00616.52
7.3.70.0000.01616.36
7.3.60.0090.00616.40
7.3.50.0090.00616.32
7.3.40.0100.00716.36
7.3.30.0080.00816.46
7.3.20.0260.01016.52
7.3.10.0100.00716.51
7.3.00.0110.00516.41
7.2.330.0110.00616.54
7.2.320.0100.00716.82
7.2.310.0100.00716.70
7.2.300.0090.00916.68
7.2.290.0120.00816.70
7.2.280.0080.00816.75
7.2.270.0060.01216.76
7.2.260.0090.00916.59
7.2.250.0120.00316.81
7.2.240.0110.00416.48
7.2.230.0080.00816.72
7.2.220.0100.00716.83
7.2.210.0060.00916.82
7.2.200.0030.01316.45
7.2.190.0090.00716.63
7.2.180.0090.00916.56
7.2.170.0040.01216.54
7.2.160.0090.01316.67
7.2.150.0130.00716.77
7.2.140.0120.00616.59
7.2.130.0100.00716.71
7.2.120.0140.00416.83
7.2.110.0090.00616.72
7.2.100.0100.00816.73
7.2.90.0110.00616.76
7.2.80.0130.00516.61
7.2.70.0060.00816.77
7.2.60.0090.01116.69
7.2.50.0090.01116.72
7.2.40.0080.01016.68
7.2.30.0060.01116.86
7.2.20.0090.00916.88
7.2.10.0080.00816.73
7.2.00.0070.00917.64
7.1.330.0120.00615.36
7.1.320.0060.01015.54
7.1.310.0080.00815.38
7.1.300.0070.01015.52
7.1.290.0090.00615.64
7.1.280.0120.00315.77
7.1.270.0080.00815.61
7.1.260.0080.00815.47
7.1.250.0050.01015.52
7.1.240.0080.00615.59
7.1.230.0080.00715.58
7.1.220.0050.01015.63
7.1.210.0100.00715.54
7.1.200.0030.01215.63
7.1.190.0130.00815.44
7.1.180.0110.00615.42
7.1.170.0090.00615.55
7.1.160.0110.00615.52
7.1.150.0090.00615.70
7.1.140.0100.00515.67
7.1.130.0090.00815.66
7.1.120.0080.00715.52
7.1.110.0070.01015.52
7.1.100.0100.00715.67
7.1.90.0130.00415.74
7.1.80.0080.00715.54
7.1.70.0060.00716.11
7.1.60.0070.00816.18
7.1.50.0110.00615.63
7.1.40.0110.00515.53
7.1.30.0080.00615.59
7.1.20.0060.00815.75
7.1.10.0120.00315.74
7.1.00.0090.02817.86
7.0.330.0120.00315.14
7.0.320.0070.00815.38
7.0.310.0090.00815.40
7.0.300.0120.00715.13
7.0.290.0110.00715.38
7.0.280.0120.00615.25
7.0.270.0130.00515.39
7.0.260.0110.00415.23
7.0.250.0090.00915.46
7.0.240.0110.00415.33
7.0.230.0110.00615.35
7.0.220.0110.00515.35
7.0.210.0080.00615.22
7.0.200.0130.00615.27
7.0.190.0100.00515.17
7.0.180.0080.00815.36
7.0.170.0060.00815.31
7.0.160.0060.01015.38
7.0.150.0090.00415.29
7.0.140.0100.00815.36
7.0.130.0080.01115.33
7.0.120.0120.00515.32
7.0.110.0150.02717.04
7.0.100.0180.02317.00
7.0.90.0200.02216.97
7.0.80.0230.02117.02
7.0.70.0180.02216.90
7.0.60.0190.01917.02
7.0.50.0150.02416.94
7.0.40.0190.02116.33
7.0.30.0150.02616.33
7.0.20.0180.02316.45
7.0.10.0210.02116.37
7.0.00.0180.02316.26
5.6.400.0070.01316.10
5.6.390.0030.01715.95
5.6.380.0050.00815.08
5.6.370.0160.00615.19
5.6.360.0070.01415.37
5.6.350.0120.01015.17
5.6.340.0100.01015.34
5.6.330.0140.00515.16
5.6.320.0090.01015.24
5.6.310.0110.00815.40
5.6.300.0120.00815.16
5.6.290.0140.00515.18
5.6.280.0120.01015.29
5.6.270.0110.00715.17
5.6.260.0150.02817.20
5.6.250.0090.02817.04
5.6.240.0100.02717.38
5.6.230.0040.03217.20
5.6.220.0050.02817.18
5.6.210.0110.02116.99
5.6.200.0110.02117.09
5.6.190.0120.02217.12
5.6.180.0150.02017.15
5.6.170.0120.02217.05
5.6.160.0080.02517.01
5.6.150.0110.02116.94
5.6.140.0100.02717.10
5.6.130.0150.02017.15
5.6.120.0110.02516.97
5.6.110.0110.02317.09
5.6.100.0090.02416.90
5.6.90.0170.02216.89
5.6.80.0120.02116.71
5.6.70.0080.02516.96
5.6.60.0150.02316.76
5.6.50.0120.02216.91
5.6.40.0080.02716.81
5.6.30.0100.02516.93
5.6.20.0050.02916.89
5.6.10.0130.02416.82
5.6.00.0080.02516.78

preferences:
69.05 ms | 401 KiB | 5 Q