3v4l.org

run code in 300+ PHP versions simultaneously
<?php include 'Campanha.class'; 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('Campanha.class') );

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.0170.00016.63
8.3.50.0070.00717.93
8.3.40.0100.00718.96
8.3.30.0080.00619.27
8.3.20.0050.00220.35
8.3.10.0040.00423.65
8.3.00.0040.00419.68
8.2.180.0150.00316.74
8.2.170.0000.01422.96
8.2.160.0070.00720.29
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00421.04
8.2.110.0090.00022.07
8.2.100.0060.00618.34
8.2.90.0040.00419.18
8.2.80.0030.00517.97
8.2.70.0030.00717.63
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0030.00518.16
8.2.30.0080.00018.26
8.2.20.0000.00817.72
8.2.10.0000.00718.13
8.2.00.0030.00617.71
8.1.270.0050.00323.96
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00622.02
8.1.230.0110.00018.97
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0000.01017.25
8.1.190.0090.00017.22
8.1.180.0080.00018.10
8.1.170.0080.00018.66
8.1.160.0040.00421.96
8.1.150.0030.00518.66
8.1.140.0020.00517.39
8.1.130.0030.00317.88
8.1.120.0040.00417.54
8.1.110.0000.00717.45
8.1.100.0040.00417.53
8.1.90.0020.00517.52
8.1.80.0080.00017.51
8.1.70.0000.00717.45
8.1.60.0030.00617.54
8.1.50.0080.00017.55
8.1.40.0000.00917.50
8.1.30.0030.00517.73
8.1.20.0080.00017.68
8.1.10.0030.00617.68
8.1.00.0030.00617.68
8.0.300.0050.00218.77
8.0.290.0030.00616.75
8.0.280.0040.00418.60
8.0.270.0040.00417.26
8.0.260.0020.00517.23
8.0.250.0030.00317.14
8.0.240.0040.00417.16
8.0.230.0030.00617.11
8.0.220.0030.00317.03
8.0.210.0040.00416.95
8.0.200.0030.00317.00
8.0.190.0070.00317.12
8.0.180.0030.00617.05
8.0.170.0040.00417.06
8.0.160.0030.00516.96
8.0.150.0070.00016.93
8.0.140.0040.00317.05
8.0.130.0000.00513.43
8.0.120.0030.00516.93
8.0.110.0050.00216.98
8.0.100.0000.00716.93
8.0.90.0000.00716.84
8.0.80.0090.00617.04
8.0.70.0050.00317.07
8.0.60.0040.00417.00
8.0.50.0000.00817.14
8.0.30.0080.01117.17
8.0.20.0060.01217.40
8.0.10.0040.00416.99
8.0.00.0110.00816.97
7.4.330.0050.00015.15
7.4.320.0030.00316.54
7.4.300.0030.00316.47
7.4.290.0030.00316.68
7.4.280.0050.00316.42
7.4.270.0000.00716.69
7.4.260.0070.00416.66
7.4.250.0050.00316.48
7.4.240.0020.00516.57
7.4.230.0050.00216.73
7.4.220.0110.01516.59
7.4.210.0100.01016.61
7.4.200.0030.00316.66
7.4.160.0070.01016.41
7.4.150.0100.01017.40
7.4.140.0080.01317.86
7.4.130.0100.00716.62
7.4.120.0070.01316.57
7.4.110.0100.00716.56
7.4.100.0160.00316.61
7.4.90.0070.01316.39
7.4.80.0030.01319.39
7.4.70.0120.00616.57
7.4.60.0100.00716.64
7.4.50.0050.00016.60
7.4.40.0130.00316.52
7.4.30.0140.00316.60
7.4.00.0070.00815.02
7.3.330.0030.00313.32
7.3.320.0000.00613.32
7.3.310.0040.00416.35
7.3.300.0030.00416.42
7.3.290.0140.00416.50
7.3.280.0110.00816.55
7.3.270.0170.00717.40
7.3.260.0180.00316.55
7.3.250.0120.01116.46
7.3.240.0100.00716.55
7.3.230.0000.01716.47
7.3.210.0180.00016.38
7.3.200.0130.00319.39
7.3.190.0120.00616.67
7.3.180.0070.01016.43
7.3.170.0120.00916.59
7.3.160.0060.01216.48
7.3.120.0080.00714.81
7.3.110.0100.00814.93
7.3.100.0080.01114.87
7.3.90.0070.00814.93
7.3.80.0030.01214.95
7.3.70.0100.00314.99
7.3.60.0030.00914.83
7.3.50.0000.01514.80
7.3.40.0070.00414.65
7.3.30.0050.00514.93
7.3.20.0050.00616.62
7.3.10.0050.00816.57
7.3.00.0030.01116.75
7.2.330.0140.00716.79
7.2.320.0000.01816.88
7.2.310.0070.01316.58
7.2.300.0060.01016.63
7.2.290.0100.00716.80
7.2.250.0110.00715.07
7.2.240.0030.01515.19
7.2.230.0050.01315.09
7.2.220.0020.01014.97
7.2.210.0070.00715.12
7.2.200.0090.00614.99
7.2.190.0050.00415.03
7.2.180.0070.00714.88
7.2.170.0020.01014.87
7.2.00.0000.01319.57
7.1.330.0040.01115.84
7.1.320.0070.00515.60
7.1.310.0090.00615.67
7.1.300.0040.00715.83
7.1.290.0070.00815.78
7.1.280.0080.00715.71
7.1.270.0100.00315.78
7.1.260.0050.00715.73
7.1.200.0090.00315.96
7.1.100.0900.00716.16
7.1.70.0040.00417.19
7.1.60.0030.02019.70
7.1.50.0030.01916.74
7.1.00.0030.07722.52
7.0.200.0070.00016.62
7.0.140.0030.07022.05
7.0.60.0070.08020.07
7.0.50.0030.07717.89
7.0.40.0030.04720.21
7.0.30.0200.06020.04
7.0.20.0230.08320.31
7.0.10.0030.07020.07
7.0.00.0130.08020.23
5.6.280.0070.07021.13
5.6.210.0030.04020.54
5.6.200.0070.05318.29
5.6.190.0100.08020.34
5.6.180.0330.04720.77
5.6.170.0230.07020.45
5.6.160.0130.07020.39
5.6.150.0070.04018.28
5.6.140.0070.04718.29
5.6.130.0030.04018.16
5.6.120.0230.06321.00
5.6.110.0070.08321.11
5.6.100.0170.05321.03
5.6.90.0070.06321.13
5.6.80.0070.06320.54
5.5.350.0070.06720.30
5.5.340.0100.05017.96
5.5.330.0030.07320.34
5.5.320.0170.04720.27
5.5.310.0300.04320.27
5.5.300.0130.07317.99
5.5.290.0130.07018.05
5.5.280.0130.07720.80
5.5.270.0130.03320.65
5.5.260.0130.07720.64
5.5.250.0030.04320.71
5.5.240.0230.07320.12
5.4.450.0230.06019.28
5.4.440.0270.05719.41
5.4.430.0170.05019.16
5.4.420.0470.04319.42
5.4.410.0170.07719.31
5.4.400.0330.05719.26
5.4.390.0200.06318.88
5.4.380.0170.07319.17
5.4.370.0230.07019.25
5.4.360.0200.04318.86
5.4.350.0270.03719.16
5.4.340.0200.05019.10
5.4.320.0230.07319.00
5.4.310.0300.06719.18
5.4.300.0370.05318.85
5.4.290.0330.06719.24
5.4.280.0270.06319.20
5.4.270.0200.05019.14
5.4.260.0270.07019.10
5.4.250.0200.06018.98
5.4.240.0200.06319.09
5.4.230.0170.08019.20
5.4.220.0330.06719.13
5.4.210.0270.07019.21
5.4.200.0270.06719.22
5.4.190.0200.07318.99
5.4.180.0200.06719.31
5.4.170.0200.07318.99
5.4.160.0330.05319.13
5.4.150.0170.04719.14
5.4.140.0100.04016.52
5.4.130.0200.03316.46
5.4.120.0300.05016.50
5.4.110.0230.06316.56
5.4.100.0170.05716.55
5.4.90.0230.06716.55
5.4.80.0230.06316.55
5.4.70.0200.03016.18
5.4.60.0200.04716.25
5.4.50.0170.04316.33
5.4.40.0230.06016.43
5.4.30.0170.06316.40
5.4.20.0170.07016.34
5.4.10.0270.06016.32
5.4.00.0200.04315.84
5.3.290.0370.03314.69
5.3.280.0230.07714.60
5.3.270.0270.07014.69
5.3.260.0330.06314.61
5.3.250.0200.04314.65
5.3.240.0170.03714.54
5.3.230.0200.03314.69
5.3.220.0270.07014.47
5.3.210.0270.06014.74
5.3.200.0130.06714.57
5.3.190.0370.06014.65
5.3.180.0200.07014.54
5.3.170.0200.04714.54
5.3.160.0200.04314.55
5.3.150.0130.07014.72
5.3.140.0230.07314.47
5.3.130.0270.06714.55
5.3.120.0230.06714.77
5.3.110.0200.06714.47
5.3.100.0200.03714.20
5.3.90.0230.07014.01
5.3.80.0170.07313.92
5.3.70.0100.06014.09
5.3.60.0200.05014.08
5.3.50.0200.06314.03
5.3.40.0270.07013.86
5.3.30.0170.03314.07
5.3.20.0230.06313.71
5.3.10.0200.06313.56
5.3.00.0200.03713.65
5.2.170.0130.06012.31
5.2.160.0100.05012.31
5.2.150.0170.05012.31
5.2.140.0030.03712.31
5.2.130.0100.06312.31
5.2.120.0130.04712.31
5.2.110.0070.04012.31
5.2.100.0170.03012.31
5.2.90.0170.03012.31
5.2.80.0130.05712.31
5.2.70.0030.04312.31
5.2.60.0130.03312.31
5.2.50.0100.06712.31
5.2.40.0170.02712.31
5.2.30.0070.03312.31
5.2.20.0100.03012.31
5.2.10.0070.03312.31
5.2.00.0130.05312.31
5.1.60.0100.02712.31
5.1.50.0130.02312.31
5.1.40.0100.02712.31
5.1.30.0100.03012.31
5.1.20.0100.04012.31
5.1.10.0070.02712.31
5.1.00.0030.02712.31
5.0.50.0030.04312.31
5.0.40.0070.04312.31
5.0.30.0070.03012.31
5.0.20.0170.04012.31
5.0.10.0030.02712.31
5.0.00.0030.06012.31
4.4.90.0000.02012.31
4.4.80.0070.03312.31
4.4.70.0070.01312.31
4.4.60.0030.02312.31
4.4.50.0100.02012.31
4.4.40.0100.04712.31
4.4.30.0100.03312.31
4.4.20.0070.01312.31
4.4.10.0100.02312.31
4.4.00.0030.03312.31
4.3.110.0070.02712.31
4.3.100.0030.02312.31
4.3.90.0030.03712.31
4.3.80.0100.05012.31
4.3.70.0030.02012.31
4.3.60.0030.01712.31
4.3.50.0030.01712.31
4.3.40.0070.04312.31
4.3.30.0000.02012.31
4.3.20.0000.01712.31
4.3.10.0030.01712.31
4.3.00.0000.01712.31

preferences:
67.63 ms | 400 KiB | 5 Q