3v4l.org

run code in 300+ PHP versions simultaneously
<?php function checkIfFileIsIncluded($files = null) { if (empty($files)) { return false; } // Caso $files seja uma String (ou qualquer outro valor do tipo Scalar), converta para um Array if (is_scalar($files)) { $files = array($files); } // Pega os nomes dos arquivos já incluídos com as funções "include", "include_once", "require" e "require_once" $includedFiles = get_included_files(); foreach ($files as $fileName) { if ( ! in_array($fileName, $includedFiles)) { return true; } } return false; } var_dump( checkIfFileIsIncluded('') );

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.0100.00718.55
8.3.50.0150.00022.04
8.3.40.0100.00718.67
8.3.30.0120.00418.94
8.3.20.0040.00420.30
8.3.10.0060.00323.53
8.3.00.0080.00019.43
8.2.180.0070.01416.38
8.2.170.0100.00322.96
8.2.160.0070.00720.52
8.2.150.0060.00324.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0030.00520.98
8.2.110.0060.00322.24
8.2.100.0040.00717.72
8.2.90.0040.00418.09
8.2.80.0000.00817.97
8.2.70.0040.00417.38
8.2.60.0080.00017.91
8.2.50.0040.00418.07
8.2.40.0030.00518.13
8.2.30.0070.00018.21
8.2.20.0000.00717.67
8.2.10.0000.00817.82
8.2.00.0000.00817.62
8.1.280.0070.00725.92
8.1.270.0070.00023.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00717.23
8.1.230.0080.00318.88
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0050.00517.10
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0000.00818.58
8.1.160.0040.00421.95
8.1.150.0000.00718.38
8.1.140.0050.00217.23
8.1.130.0000.00717.84
8.1.120.0030.00317.30
8.1.110.0040.00417.23
8.1.100.0000.00717.32
8.1.90.0000.00717.36
8.1.80.0000.00717.38
8.1.70.0000.00717.22
8.1.60.0000.00817.59
8.1.50.0050.00217.32
8.1.40.0030.00517.50
8.1.30.0060.00317.59
8.1.20.0050.00317.56
8.1.10.0040.00417.43
8.1.00.0000.00817.37
8.0.300.0000.00718.77
8.0.290.0000.00916.58
8.0.280.0040.00418.34
8.0.270.0000.00717.19
8.0.260.0000.00617.08
8.0.250.0030.00316.72
8.0.240.0030.00316.82
8.0.230.0070.00316.87
8.0.220.0000.00616.75
8.0.210.0040.00416.70
8.0.200.0030.00316.80
8.0.190.0040.00416.71
8.0.180.0040.00416.86
8.0.170.0030.00616.78
8.0.160.0030.00616.78
8.0.150.0050.00316.72
8.0.140.0000.00716.72
8.0.130.0000.00513.29
8.0.120.0040.00416.66
8.0.110.0000.00816.74
8.0.100.0040.00416.59
8.0.90.0000.00716.78
8.0.80.0030.01416.66
8.0.70.0050.00216.76
8.0.60.0080.00016.57
8.0.50.0000.00716.64
8.0.30.0100.01117.02
8.0.20.0140.00517.40
8.0.10.0030.00516.93
8.0.00.0130.00716.55
7.4.330.0050.00015.00
7.4.320.0060.00016.41
7.4.300.0060.00016.37
7.4.290.0000.00716.45
7.4.280.0030.00616.54
7.4.270.0030.00316.34
7.4.260.0000.00816.52
7.4.250.0040.00416.48
7.4.240.0050.00216.46
7.4.230.0070.00016.44
7.4.220.0150.00416.51
7.4.210.0090.00916.50
7.4.200.0030.00316.39
7.4.160.0120.00916.36
7.4.150.0100.00717.40
7.4.140.0080.00917.86
7.4.130.0080.00816.45
7.4.120.0100.00716.38
7.4.110.0160.00016.45
7.4.100.0200.00316.55
7.4.90.0140.00716.34
7.4.80.0090.00919.39
7.4.70.0130.00316.25
7.4.60.0090.00916.41
7.4.50.0020.00216.23
7.4.40.0060.01016.37
7.4.30.0070.01016.35
7.4.00.0040.01114.66
7.3.330.0020.00213.24
7.3.320.0000.00713.00
7.3.310.0030.00316.26
7.3.300.0070.00016.22
7.3.290.0030.01616.18
7.3.280.0080.01016.21
7.3.270.0140.00417.40
7.3.260.0060.01316.26
7.3.250.0120.00516.31
7.3.240.0070.01116.25
7.3.230.0060.01016.39
7.3.210.0170.00316.16
7.3.200.0060.01019.39
7.3.190.0110.00616.25
7.3.180.0130.00316.29
7.3.170.0040.01816.42
7.3.160.0040.01116.28
7.3.120.0110.00714.73
7.3.10.0030.00616.29
7.3.00.0090.00616.70
7.2.330.0140.00416.34
7.2.320.0130.00916.50
7.2.310.0070.01016.43
7.2.300.0100.00716.36
7.2.290.0080.00816.66
7.2.130.0090.00616.94
7.2.120.0100.00016.83
7.2.110.0060.00316.80
7.2.100.0000.00916.80
7.2.90.0000.01416.79
7.2.80.0050.00716.74
7.2.70.0030.00616.92
7.2.60.0080.00716.86
7.2.50.0030.01016.89
7.2.40.0060.00316.89
7.2.30.0070.00716.82
7.2.20.0050.00616.84
7.2.10.0030.00616.93
7.2.00.0080.00618.20
7.1.250.0040.00415.87
7.1.200.0000.01215.74
7.1.100.0590.00615.83
7.1.70.0030.00617.08
7.1.60.0090.00619.70
7.1.50.0260.00734.68
7.1.00.0000.08022.45
7.0.200.0030.00316.73
7.0.140.0000.07322.02
7.0.60.0170.07719.81
7.0.50.0170.07017.97
7.0.40.0070.07720.30
7.0.30.0530.07720.09
7.0.20.0270.08720.24
7.0.10.0100.04720.30
7.0.00.0070.04720.30
5.6.280.0000.07721.13
5.6.210.0100.04720.71
5.6.200.0030.05718.16
5.6.190.0030.04020.67
5.6.180.0070.07320.57
5.6.170.0200.03720.51
5.6.160.0100.04320.71
5.6.150.0100.03718.16
5.6.140.0030.08718.14
5.6.130.0100.03718.18
5.6.120.0070.08021.02
5.6.110.0070.04321.11
5.6.100.0130.03321.14
5.6.90.0030.06721.13
5.6.80.0100.07320.54
5.6.70.0230.08020.44
5.5.350.0030.08720.43
5.5.340.0030.08317.98
5.5.330.0030.04720.27
5.5.320.0470.04320.38
5.5.310.0270.07720.27
5.5.300.0030.07317.98
5.5.290.0100.08317.94
5.5.280.0070.05320.77
5.5.270.0130.08320.68
5.5.260.0000.04720.89
5.5.250.0130.07020.68
5.5.240.0030.05720.14
5.4.450.0300.03345.03
5.4.440.0430.04743.92
5.4.430.0230.03743.91
5.4.420.0570.03743.90
5.4.410.0700.04043.90
5.4.400.0300.03743.87
5.4.390.0200.04043.86
5.4.380.0100.06318.48
5.4.370.0200.05318.47
5.4.360.0170.04718.75
5.4.350.0200.04718.73
5.4.340.0100.05318.44
5.4.320.0070.03512.50
5.4.310.0030.03912.50
5.4.300.0070.04212.51
5.4.290.0100.03812.50
5.4.280.0070.03612.40
5.4.270.0070.03412.40
5.4.260.0050.03712.40
5.4.250.0030.03912.40
5.4.240.0040.03812.40
5.4.230.0050.04212.39
5.4.220.0070.03412.39
5.4.210.0030.03612.39
5.4.200.0080.03512.39
5.4.190.0070.03412.39
5.4.180.0080.03312.39
5.4.170.0070.04412.39
5.4.160.0070.03412.39
5.4.150.0070.03412.39
5.4.140.0060.03612.07
5.4.130.0080.03312.06
5.4.120.0040.03612.02
5.4.110.0060.03512.01
5.4.100.0040.03612.01
5.4.90.0050.03712.01
5.4.80.0070.03612.01
5.4.70.0090.03312.01
5.4.60.0060.03812.01
5.4.50.0080.03712.00
5.4.40.0060.04612.00
5.4.30.0080.03311.99
5.4.20.0060.03411.99
5.4.10.0080.03811.99
5.4.00.0030.03811.48
5.3.290.0060.04312.80
5.3.280.0080.04412.71
5.3.270.0070.04312.72
5.3.260.0080.03912.72
5.3.250.0060.03612.72
5.3.240.0080.03812.72
5.3.230.0030.04012.71
5.3.220.0060.03612.68
5.3.210.0050.03912.68
5.3.200.0040.03812.68
5.3.190.0090.04212.68
5.3.180.0070.03912.68
5.3.170.0090.03612.67
5.3.160.0060.03512.67
5.3.150.0080.04212.67
5.3.140.0060.03912.66
5.3.130.0060.03912.65
5.3.120.0040.04412.66
5.3.110.0060.03812.66
5.3.100.0020.04312.12
5.3.90.0100.04012.10
5.3.80.0050.04412.09
5.3.70.0040.04112.09
5.3.60.0090.04212.08
5.3.50.0080.04012.02
5.3.40.0100.03912.02
5.3.30.0060.03511.98
5.3.20.0060.04111.76
5.3.10.0110.04311.73
5.3.00.0100.04111.71
5.2.170.0060.0329.21
5.2.160.0100.0319.21
5.2.150.0040.0439.21
5.2.140.0040.0409.21
5.2.130.0030.0319.17
5.2.120.0060.0289.17
5.2.110.0060.0339.17
5.2.100.0040.0329.17
5.2.90.0100.0269.18
5.2.80.0050.0339.16
5.2.70.0070.0299.17
5.2.60.0080.0329.13
5.2.50.0050.0329.09
5.2.40.0060.0289.07
5.2.30.0060.0359.05
5.2.20.0040.0319.04
5.2.10.0040.0308.94
5.2.00.0050.0288.80
5.1.60.0070.0238.09
5.1.50.0070.0378.08
5.1.40.0030.0358.06
5.1.30.0020.0288.41
5.1.20.0040.0278.43
5.1.10.0010.0288.16
5.1.00.0020.0328.16
5.0.50.0090.0216.63
5.0.40.0030.0196.50
5.0.30.0040.0326.31
5.0.20.0040.0186.27
5.0.10.0030.0206.26
5.0.00.0030.0306.25
4.4.90.0030.0154.78
4.4.80.0020.0164.76
4.4.70.0030.0164.75
4.4.60.0020.0164.76
4.4.50.0020.0164.77
4.4.40.0020.0284.71
4.4.30.0060.0144.76
4.4.20.0070.0144.84
4.4.10.0020.0234.85
4.4.00.0030.0274.76
4.3.110.0030.0164.67
4.3.100.0030.0154.66
4.3.90.0020.0154.64
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0020.0254.53
4.3.30.0020.0163.30
4.3.20.0020.0163.28
4.3.10.0050.0173.24
4.3.00.0030.01743.83

preferences:
55.78 ms | 401 KiB | 5 Q