3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dados_top_visitas = [ [ 'cod_usuario' => 2, 'total_visitas' => 1, ], [ 'cod_usuario' => 3, 'total_visitas' => 1, ] ]; var_dump(in_array(3, array_column($dados_top_visitas, 'cod_usuario'), true)); echo PHP_EOL; // array_column: var_dump(array_column($dados_top_visitas, 'cod_usuario'));

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.20.0200.00017.41
8.4.10.0040.00417.81
8.3.150.0140.00418.90
8.3.140.0120.00316.66
8.3.130.0040.00416.31
8.3.120.0110.00018.79
8.3.110.0040.00420.94
8.3.100.0120.00316.63
8.3.90.0040.00426.77
8.3.80.0030.00718.30
8.3.70.0120.00316.50
8.3.60.0140.00716.63
8.3.50.0110.00917.45
8.3.40.0140.00318.70
8.3.30.0070.00718.77
8.3.20.0040.00421.79
8.3.10.0080.00021.89
8.3.00.0050.00319.43
8.2.260.0130.00618.99
8.2.250.0060.00916.43
8.2.240.0090.00017.05
8.2.230.0040.00422.58
8.2.220.0120.00624.06
8.2.210.0030.00626.77
8.2.200.0060.00318.29
8.2.190.0110.00316.58
8.2.180.0060.01116.38
8.2.170.0070.01422.96
8.2.160.0110.00419.51
8.2.150.0000.00724.18
8.2.140.0050.00224.66
8.2.130.0040.00420.38
8.2.120.0080.00026.35
8.2.110.0060.00320.52
8.2.100.0060.00620.54
8.2.90.0030.00619.57
8.2.80.0040.00419.38
8.2.70.0040.00417.80
8.2.60.0090.00018.22
8.2.50.0000.00918.10
8.2.40.0080.00020.30
8.2.30.0070.00019.21
8.2.20.0000.00818.06
8.2.10.0030.00517.99
8.2.00.0040.00417.88
8.1.310.0040.00416.49
8.1.300.0100.01016.25
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0060.00323.89
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00321.02
8.1.230.0050.00519.12
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0030.00517.22
8.1.180.0000.00818.10
8.1.170.0000.00818.65
8.1.160.0080.00018.83
8.1.150.0080.00018.84
8.1.140.0000.00819.50
8.1.130.0040.00418.81
8.1.120.0000.00717.41
8.1.110.0020.00517.39
8.1.100.0080.00017.28
8.1.90.0040.00417.39
8.1.80.0000.00817.27
8.1.70.0040.00417.30
8.1.60.0040.00417.54
8.1.50.0050.00317.35
8.1.40.0000.00817.33
8.1.30.0000.00917.60
8.1.20.0000.00717.56
8.1.10.0000.00817.40
8.1.00.0040.00417.38
8.0.300.0050.00219.73
8.0.290.0080.00016.75
8.0.280.0030.00318.36
8.0.270.0000.00717.26
8.0.260.0060.00018.97
8.0.250.0070.00016.90
8.0.240.0000.00716.88
8.0.230.0030.00316.78
8.0.220.0000.00716.84
8.0.210.0040.00416.89
8.0.200.0030.00316.78
8.0.190.0030.00616.78
8.0.180.0030.00516.91
8.0.170.0040.00416.90
8.0.160.0000.00716.87
8.0.150.0040.00416.70
8.0.140.0030.00316.83
8.0.130.0040.00413.21
8.0.120.0040.00416.72
8.0.110.0030.00316.73
8.0.100.0060.00316.71
8.0.90.0050.00216.78
8.0.80.0060.00916.84
8.0.70.0040.00416.83
8.0.60.0040.00416.88
8.0.50.0000.00716.87
8.0.30.0090.00817.03
8.0.20.0130.00817.40
8.0.10.0000.00817.02
8.0.00.0070.01116.50
7.4.330.0050.00015.55
7.4.320.0060.00016.58
7.4.300.0030.00316.39
7.4.290.0030.00616.53
7.4.280.0040.00416.58
7.4.270.0000.00716.55
7.4.260.0030.00616.44
7.4.250.0040.00416.32
7.4.240.0040.00416.55
7.4.230.0000.00816.43
7.4.220.0000.01716.55
7.4.210.0070.00816.31
7.4.200.0040.00416.52
7.4.160.0050.01116.57
7.4.150.0110.00617.40
7.4.140.0120.01017.86
7.4.130.0230.00616.33
7.4.120.0170.00616.49
7.4.110.0100.00716.62
7.4.100.0060.01216.51
7.4.90.0030.01416.43
7.4.80.0100.00619.39
7.4.70.0120.00316.64
7.4.60.0100.01016.32
7.4.50.0090.00616.10
7.4.40.0130.00316.23
7.4.30.0080.00816.46
7.4.00.0050.01014.88
7.3.330.0060.00013.07
7.3.320.0020.00212.89
7.3.310.0000.00616.08
7.3.300.0000.00816.08
7.3.290.0070.00716.13
7.3.280.0100.00816.15
7.3.270.0100.00717.40
7.3.260.0100.01016.38
7.3.250.0100.01016.38
7.3.240.0150.00616.42
7.3.230.0060.01016.35
7.3.210.0090.00716.15
7.3.200.0150.00716.14
7.3.190.0130.00316.19
7.3.180.0160.01016.19
7.3.170.0130.00716.41
7.3.160.0080.00716.36
7.3.120.0090.00914.38
7.3.110.0120.00414.75
7.3.100.0130.00314.55
7.3.90.0090.00615.00
7.3.80.0040.01214.63
7.3.70.0000.01014.55
7.3.60.0070.00714.80
7.3.50.0070.00714.74
7.3.40.0090.00314.81
7.3.30.0090.00614.75
7.3.20.0090.00916.56
7.3.10.0030.00616.47
7.3.00.0090.00616.43
7.2.330.0110.00616.67
7.2.320.0030.01316.43
7.2.310.0140.00816.53
7.2.300.0090.00916.49
7.2.290.0100.00816.46
7.2.250.0060.00914.83
7.2.240.0030.01715.13
7.2.230.0030.01014.79
7.2.220.0030.00614.60
7.2.210.0000.01514.55
7.2.200.0060.00614.85
7.2.190.0030.01315.02
7.2.180.0070.00715.05
7.2.170.0030.00614.91
7.1.330.0070.00715.82
7.1.320.0070.00715.77
7.1.310.0120.00415.59
7.1.300.0030.00715.78
7.1.290.0060.00315.65
7.1.280.0060.00615.47
7.1.270.0110.00315.71
7.1.260.0000.01315.56
7.1.70.0100.00317.02
7.1.60.0040.00817.21
7.1.50.0130.01034.48
7.1.40.0170.01334.22
7.1.30.0130.01034.39
7.1.20.0130.01034.47
7.1.10.0000.01316.46
7.1.00.0030.01016.50
7.0.200.0070.01016.47
7.0.190.0000.01016.22
7.0.180.0030.00716.23
7.0.170.0070.00716.08
7.0.160.0070.00716.07
7.0.150.0000.01015.97
7.0.140.0070.00316.05
7.0.130.0070.01016.22
7.0.120.0030.01016.27
7.0.110.0100.00316.09
7.0.100.0000.01016.13
7.0.90.0100.00316.21
7.0.80.0030.00716.27
7.0.70.0000.01316.13
7.0.60.0000.01315.96
7.0.50.0000.01016.20
7.0.40.0100.00316.43
7.0.30.0100.00316.21
7.0.20.0030.00716.21
7.0.10.0070.00316.25
7.0.00.0030.00716.18

preferences:
32.2 ms | 403 KiB | 5 Q