3v4l.org

run code in 300+ PHP versions simultaneously
<?php function executaPermissoes($cliente, $usuario, $clientesPermitidos = array()) { if ( ! empty($clientesPermitidos) && ! in_array($cliente, $clientesPermitidos)) { return false; } return 'Executou a função'; } $clientesPermitidos = array(10001, 10761); $cliente = 99999; $usuario = 2; var_dump( executaPermissoes($cliente, $usuario, $clientesPermitidos) );

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.60.0140.00018.14
8.3.50.0170.00821.91
8.3.40.0110.00418.69
8.3.30.0100.00319.07
8.3.20.0000.00720.39
8.3.10.0030.00623.61
8.3.00.0000.00719.00
8.2.180.0130.00616.38
8.2.170.0090.00622.96
8.2.160.0030.01020.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00419.36
8.2.110.0040.00422.20
8.2.100.0000.01217.91
8.2.90.0000.00918.99
8.2.80.0000.00817.97
8.2.70.0050.00517.61
8.2.60.0060.00317.93
8.2.50.0060.00318.07
8.2.40.0060.00319.94
8.2.30.0040.00418.16
8.2.20.0000.00817.66
8.2.10.0070.00017.99
8.2.00.0040.00419.51
8.1.280.0090.00625.92
8.1.270.0080.00023.79
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00624.02
8.1.230.0070.00418.85
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0080.00017.23
8.1.180.0080.00018.10
8.1.170.0030.00518.55
8.1.160.0040.00421.92
8.1.150.0030.00618.63
8.1.140.0070.00017.45
8.1.130.0090.00017.43
8.1.120.0000.00717.48
8.1.110.0040.00417.42
8.1.100.0040.00317.42
8.1.90.0000.00717.42
8.1.80.0000.00717.47
8.1.70.0040.00417.45
8.1.60.0050.00317.59
8.1.50.0000.00817.44
8.1.40.0050.00317.47
8.1.30.0000.00817.60
8.1.20.0000.00717.55
8.1.10.0040.00417.33
8.1.00.0040.00417.38
8.0.300.0070.00018.77
8.0.290.0070.00016.63
8.0.280.0030.00318.49
8.0.270.0050.00217.25
8.0.260.0000.00816.69
8.0.250.0040.00416.96
8.0.240.0000.00916.93
8.0.230.0000.00716.86
8.0.220.0000.00816.77
8.0.210.0030.00316.84
8.0.200.0030.00316.86
8.0.190.0030.00316.84
8.0.180.0040.00416.95
8.0.170.0070.00016.96
8.0.160.0030.00316.86
8.0.150.0070.00016.77
8.0.140.0000.00716.72
8.0.130.0060.00013.33
8.0.120.0030.00516.88
8.0.110.0040.00416.87
8.0.100.0050.00216.88
8.0.90.0000.00716.80
8.0.80.0040.01116.95
8.0.70.0000.00816.84
8.0.60.0000.00816.84
8.0.50.0070.00016.76
8.0.30.0070.01116.89
8.0.20.0080.01117.40
8.0.10.0000.00716.85
8.0.00.0110.00716.65
7.4.330.0030.00315.15
7.4.320.0070.00016.40
7.4.300.0030.00316.55
7.4.290.0070.00016.49
7.4.280.0000.00816.41
7.4.270.0030.00316.51
7.4.260.0000.00716.50
7.4.250.0030.00316.46
7.4.240.0050.00216.51
7.4.230.0050.00216.64
7.4.220.0090.00916.54
7.4.210.0050.00916.54
7.4.200.0000.00716.41
7.4.160.0060.00916.42
7.4.150.0060.01117.40
7.4.140.0080.00817.86
7.4.130.0050.01416.53
7.4.120.0160.00216.56
7.4.110.0100.00716.55
7.4.100.0120.00616.51
7.4.90.0090.00916.43
7.4.80.0170.00319.39
7.4.70.0030.01216.57
7.4.60.0140.00916.43
7.4.50.0000.00816.42
7.4.40.0110.00916.47
7.4.30.0060.00916.63
7.4.00.0110.00414.74
7.3.330.0000.00513.16
7.3.320.0000.00613.10
7.3.310.0030.00316.23
7.3.300.0030.00316.20
7.3.290.0110.00316.20
7.3.280.0040.01216.24
7.3.270.0130.00317.40
7.3.260.0060.01816.48
7.3.250.0130.00416.38
7.3.240.0040.01316.21
7.3.230.0130.00316.40
7.3.210.0000.01816.24
7.3.200.0070.01016.55
7.3.190.0130.00716.19
7.3.180.0120.00316.49
7.3.170.0180.00316.27
7.3.160.0110.00516.58
7.3.120.0040.01414.69
7.3.10.0030.01016.58
7.3.00.0100.00316.76
7.2.330.0070.01116.68
7.2.320.0120.00616.51
7.2.310.0110.00716.30
7.2.300.0130.00316.35
7.2.290.0160.00016.60
7.2.130.0090.00916.73
7.2.120.0000.01516.87
7.2.110.0040.00816.79
7.2.100.0030.00616.58
7.2.90.0120.00316.79
7.2.80.0110.00416.85
7.2.70.0040.00816.52
7.2.60.0080.00616.68
7.2.50.0040.01116.81
7.2.40.0070.00316.83
7.2.30.0000.00916.80
7.2.20.0000.01416.91
7.2.10.0070.00616.89
7.2.00.0080.00317.93
7.1.250.0030.00715.83
7.1.100.0070.00717.96
7.1.70.0000.00816.93
7.1.60.0100.01419.70
7.1.50.0050.00816.98
7.1.00.0000.07722.31
7.0.200.0030.00616.45
7.0.140.0000.07722.10
7.0.60.0130.08319.95
7.0.50.0070.06317.86
7.0.40.0030.05020.26
7.0.30.0270.04020.24
7.0.20.0370.07320.33
7.0.10.0200.05020.30
7.0.00.0030.04320.33
5.6.280.0030.07320.82
5.6.210.0130.04020.57
5.6.200.0070.07718.16
5.6.190.0000.08020.67
5.6.180.0130.03320.68
5.6.170.0300.05320.39
5.6.160.0030.09020.46
5.6.150.0070.04018.13
5.6.140.0100.07718.27
5.6.130.0130.05018.19
5.6.120.0070.05721.14
5.6.110.0170.07021.02
5.6.100.0100.07321.04
5.6.90.0100.07020.98
5.6.80.0030.04020.36
5.6.70.0200.03020.41
5.5.350.0130.07320.46
5.5.340.0100.08318.09
5.5.330.0130.08020.46
5.5.320.0100.07020.30
5.5.310.0200.08020.24
5.5.300.0000.04017.96
5.5.290.0130.03318.09
5.5.280.0170.07720.66
5.5.270.0000.04320.73
5.5.260.0100.08020.89
5.5.250.0070.06020.59
5.5.240.0100.03320.24
5.4.450.0130.03728.63
5.4.440.0300.06023.82
5.4.430.0500.03721.57
5.4.420.0230.04721.57
5.4.410.0270.05021.36
5.4.400.0230.04321.14
5.4.390.0170.05021.13
5.4.380.0400.05718.82
5.4.370.0530.05718.71
5.4.360.0400.06718.73
5.4.350.0230.06318.69
5.4.340.0300.05718.72
5.4.320.0060.03612.50
5.4.310.0030.04112.50
5.4.300.0060.03712.51
5.4.290.0060.03812.50
5.4.280.0060.03612.40
5.4.270.0050.03612.40
5.4.260.0090.04212.39
5.4.250.0090.03712.40
5.4.240.0060.03512.40
5.4.230.0060.03712.39
5.4.220.0070.03412.39
5.4.210.0060.03412.39
5.4.200.0070.03612.39
5.4.190.0060.04212.39
5.4.180.0080.03312.39
5.4.170.0090.04012.39
5.4.160.0070.03412.39
5.4.150.0060.03512.38
5.4.140.0070.03512.07
5.4.130.0090.03812.06
5.4.120.0050.03612.02
5.4.110.0070.03812.01
5.4.100.0040.03612.02
5.4.90.0050.03712.01
5.4.80.0040.03912.01
5.4.70.0060.03412.01
5.4.60.0030.03712.01
5.4.50.0080.03412.01
5.4.40.0050.03512.00
5.4.30.0080.03311.99
5.4.20.0040.03912.00
5.4.10.0070.03711.99
5.4.00.0080.03311.48
5.3.290.0080.03812.80
5.3.280.0100.04112.71
5.3.270.0050.03912.73
5.3.260.0050.04012.72
5.3.250.0040.04012.72
5.3.240.0100.03412.72
5.3.230.0050.03812.71
5.3.220.0040.03912.68
5.3.210.0110.03712.68
5.3.200.0060.03512.68
5.3.190.0040.03912.68
5.3.180.0100.03812.68
5.3.170.0110.04012.67
5.3.160.0070.03612.68
5.3.150.0080.03412.67
5.3.140.0090.03512.66
5.3.130.0030.04212.66
5.3.120.0070.03812.65
5.3.110.0060.03812.66
5.3.100.0090.03312.11
5.3.90.0070.03312.10
5.3.80.0050.03612.09
5.3.70.0100.03612.09
5.3.60.0060.03912.08
5.3.50.0050.04112.02
5.3.40.0070.03512.02
5.3.30.0080.04011.97
5.3.20.0060.03511.77
5.3.10.0090.03711.73
5.3.00.0090.03911.71
5.2.170.0070.0289.22
5.2.160.0050.0299.21
5.2.150.0040.0319.21
5.2.140.0090.0269.21
5.2.130.0030.0319.17
5.2.120.0070.0339.17
5.2.110.0040.0299.18
5.2.100.0080.0309.18
5.2.90.0040.0339.18
5.2.80.0070.0299.17
5.2.70.0080.0309.17
5.2.60.0110.0239.13
5.2.50.0040.0319.10
5.2.40.0060.0279.07
5.2.30.0060.0289.04
5.2.20.0050.0289.04
5.2.10.0030.0298.94
5.2.00.0050.0288.80
5.1.60.0040.0248.09
5.1.50.0030.0258.08
5.1.40.0040.0248.06
5.1.30.0040.0268.41
5.1.20.0050.0278.43
5.1.10.0050.0268.16
5.1.00.0040.0338.16
5.0.50.0040.0206.64
5.0.40.0030.0196.50
5.0.30.0040.0306.31
5.0.20.0060.0166.28
5.0.10.0020.0216.26
5.0.00.0030.0326.25
4.4.90.0030.0214.78
4.4.80.0040.0164.75
4.4.70.0050.0134.76
4.4.60.0050.0134.75
4.4.50.0040.0154.77
4.4.40.0020.0274.71
4.4.30.0050.0144.76
4.4.20.0050.0144.84
4.4.10.0040.0144.85
4.4.00.0050.0224.76
4.3.110.0040.0144.66
4.3.100.0040.0144.66
4.3.90.0030.0144.63
4.3.80.0040.0234.58
4.3.70.0020.0154.63
4.3.60.0040.0134.63
4.3.50.0040.0144.63
4.3.40.0030.0254.54
4.3.30.0010.0173.30
4.3.20.0010.0173.28
4.3.10.0030.0153.24
4.3.00.0000.02314.92

preferences:
38.15 ms | 401 KiB | 5 Q