3v4l.org

run code in 300+ PHP versions simultaneously
<?php $FEK_year = 2013; $url = 'http://www.et.gr/idocs-nph/search/fekForm.html'; $year = (int)$FEK_year; $resultsArray = array(array()); $index1 = 0; $index2 = 0; $FEK_year = 2013; $checkBoxIssue = NULL; $FEK_number = 1; $urlpdf = NULL; echo 'hello'; if ($year < 30) { $FEK_year = (string)(2000 + $year); } elseif ($year < 100) { $FEK_year = (string)(1900 + $year); } else { $FEK_year = (string)($year); } $fekyear = (int)$FEK_year; $data = array('year' => $FEK_year, $checkBoxIssue => 'on', 'fekNumberFrom' => $FEK_number, 'fekNumberTo' => $FEK_number, 'fekEffectiveDateFrom' => '01.01'.((string)$fekyear), 'fekEffectiveDateTo' => '31.12',((string)$fekyear), 'fekReleaseDateFrom' => '01.01'.((string)$fekyear), 'fekReleaseDateTo' => '31.12'.((string)($fekyear+1)), 'pageNumber' => '1'); // use key 'http' even if you send the request to https://... $options = array( 'http' => array( 'header' => "Accept-language: en\r\n" . "Content-type: application/x-www-form-urlencoded\r\n" . "User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.132 Safari/537.36\r\n", 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); if (strpos($result, 'Το ΦΕΚ σε PDF μορφή') !== false) { $urlpdf = 'http://www.et.gr'.substr($results, strpos($results, 'href=') + 6, strpos($results, '\" target=') - (strpos($results, 'href=') + 6)); } return $urlpdf;

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.5.10.0110.00620.40
8.5.00.0150.01020.47
8.4.150.0020.00014.05
8.4.140.0100.01217.77
8.4.130.0070.01319.23
8.4.120.0140.00624.20
8.4.110.0160.00420.58
8.4.100.0170.00419.03
8.4.90.0130.00621.04
8.4.80.0090.01118.61
8.4.70.0120.01118.94
8.4.60.0130.00919.01
8.4.50.0050.00618.84
8.4.40.0030.01619.95
8.4.30.0070.01017.89
8.4.20.0160.00317.97
8.4.10.0100.01017.96
8.3.280.0080.01218.75
8.3.270.0090.01116.98
8.3.260.0110.00916.96
8.3.250.0110.00919.07
8.3.240.0150.00517.45
8.3.230.0070.00716.82
8.3.220.0120.00819.57
8.3.210.0060.00618.65
8.3.200.0040.00516.93
8.3.190.0110.00817.76
8.3.180.0090.00919.00
8.3.170.0040.00419.10
8.3.160.0040.00419.13
8.3.150.0130.00617.01
8.3.140.0060.00317.68
8.3.130.0050.00318.75
8.3.120.0080.00021.00
8.3.110.0100.01020.94
8.3.100.0030.00524.06
8.3.90.0120.00326.77
8.3.80.0030.00619.05
8.3.70.0100.01018.72
8.3.60.0000.01518.93
8.3.50.0100.00922.18
8.3.40.0110.00719.01
8.3.30.0090.00619.13
8.3.20.0040.00419.52
8.3.10.0080.00022.17
8.3.00.0030.00521.09
8.2.290.0100.00920.51
8.2.280.0130.00620.55
8.2.270.0120.00617.10
8.2.260.0140.00417.25
8.2.250.0080.00017.27
8.2.240.0080.00317.38
8.2.230.0070.00322.58
8.2.220.0130.00337.54
8.2.210.0130.00326.77
8.2.200.0070.00317.13
8.2.190.0130.00918.66
8.2.180.0040.01118.79
8.2.170.0070.01122.96
8.2.160.0060.00922.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00026.16
8.2.120.0050.00320.89
8.2.110.0090.00019.63
8.2.100.0080.00418.05
8.2.90.0080.00019.45
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0000.00818.18
8.2.50.0000.00818.10
8.2.40.0090.00020.71
8.2.30.0000.00819.57
8.2.20.0040.00418.01
8.2.10.0000.00818.41
8.2.00.0000.00718.25
8.1.330.0090.00622.19
8.1.320.0110.00916.45
8.1.310.0000.01418.45
8.1.300.0060.00318.66
8.1.290.0060.00330.84
8.1.280.0070.01425.92
8.1.270.0040.00424.07
8.1.260.0140.00326.35
8.1.250.0080.00028.09
8.1.240.0080.00021.61
8.1.230.0080.00418.08
8.1.220.0000.00818.03
8.1.210.0040.00418.77
8.1.200.0090.00017.49
8.1.190.0030.00617.60
8.1.180.0050.00318.10
8.1.170.0030.00518.80
8.1.160.0040.00419.30
8.1.150.0060.00319.07
8.1.140.0000.00819.83
8.1.130.0000.00718.00
8.1.120.0000.00817.66
8.1.110.0040.00417.63
8.1.100.0000.00717.62
8.1.90.0000.00917.69
8.1.80.0050.00317.61
8.1.70.0040.00417.61
8.1.60.0000.00817.82
8.1.50.0030.00617.79
8.1.40.0030.00517.73
8.1.30.0050.00317.89
8.1.20.0000.00717.93
8.1.10.0040.00417.73
8.1.00.0030.00517.70
8.0.300.0050.00318.77
8.0.290.0070.00016.88
8.0.280.0080.00018.75
8.0.270.0050.00217.50
8.0.260.0030.00717.62
8.0.250.0030.00317.23
8.0.240.0040.00417.27
8.0.230.0040.00417.29
8.0.220.0030.00317.18
8.0.210.0050.00317.16
8.0.200.0040.00417.20
8.0.190.0000.00717.39
8.0.180.0030.00517.21
8.0.170.0040.00417.18
8.0.160.0040.00417.32
8.0.150.0050.00317.27
8.0.140.0030.00517.17
8.0.130.0000.00613.85
8.0.120.0050.00317.23
8.0.110.0000.00817.26
8.0.100.0040.00417.32
8.0.90.0080.00017.30
8.0.80.0150.00317.28
8.0.70.0060.00317.24
8.0.60.0040.00417.19
8.0.50.0080.00017.17
8.0.30.0150.00517.38
8.0.20.0100.01017.40
8.0.10.0040.00717.18
8.0.00.0090.00916.95
7.4.330.0000.00515.41
7.4.320.0070.00016.81
7.4.300.0060.00016.77
7.4.290.0030.00316.72
7.4.280.0080.00016.71
7.4.270.0030.00316.70
7.4.260.0030.00316.67
7.4.250.0030.00516.75
7.4.240.0040.00416.83
7.4.230.0040.00416.70
7.4.220.0040.01416.75
7.4.210.0070.00916.85
7.4.200.0040.00416.90
7.4.160.0040.01216.86
7.4.150.0210.00617.40
7.4.140.0070.01217.86
7.4.130.0080.01116.82
7.4.120.0130.00716.91
7.4.110.0080.00916.71
7.4.100.0100.01416.86
7.4.90.0090.00916.93
7.4.80.0180.00419.39
7.4.70.0030.01516.95
7.4.60.0030.01516.92
7.4.50.0120.00316.91
7.4.40.0110.00716.69
7.4.30.0060.01216.73
7.4.00.0040.01115.20
7.3.330.0000.00513.57
7.3.320.0030.00313.48
7.3.310.0070.00016.63
7.3.300.0000.00816.73
7.3.290.0080.00016.68
7.3.280.0110.00716.74
7.3.270.0090.00917.40
7.3.260.0080.01116.64
7.3.250.0090.01116.60
7.3.240.0080.01416.79
7.3.230.0070.01116.79
7.3.210.0030.01916.81
7.3.200.0070.01116.77
7.3.190.0100.01316.99
7.3.180.0090.00916.61
7.3.170.0030.02116.66
7.3.160.0030.01416.85
7.3.120.0100.00715.32
7.3.110.0030.01415.12
7.3.100.0080.00814.89
7.3.90.0030.01015.17
7.3.80.0060.00315.29
7.3.70.0030.01215.20
7.3.60.0060.00914.84
7.3.50.0030.01415.11
7.3.40.0040.01514.83
7.3.30.0070.01015.00
7.3.20.0030.01317.05
7.3.10.0060.00617.05
7.3.00.0060.00816.92
7.2.330.0160.00316.70
7.2.320.0060.01216.80
7.2.310.0140.00816.80
7.2.300.0100.00716.99
7.2.290.0060.01216.91
7.2.240.0090.00315.54
7.2.230.0130.00315.46
7.2.220.0070.01015.55
7.2.210.0030.01315.27
7.2.200.0030.01015.55
7.2.190.0030.01415.14
7.2.180.0040.01515.33
7.2.170.0090.00915.42
7.2.160.0070.01015.30
7.2.150.0060.00916.92
7.2.140.0100.00717.00
7.2.130.0040.01516.97
7.2.120.0130.00617.03
7.2.110.0090.00616.97
7.2.100.0040.01217.23
7.2.90.0070.01017.18
7.2.80.0060.00917.43
7.2.70.0100.00717.20
7.2.60.0060.00716.98
7.2.50.0070.01017.36
7.2.40.0060.00917.15
7.2.30.0110.00016.91
7.2.20.0060.01016.87
7.2.10.0070.01017.34
7.2.00.0040.01018.37
7.1.330.0100.00716.19
7.1.320.0000.01715.93
7.1.310.0000.01315.90
7.1.300.0090.00616.21
7.1.290.0080.00616.03
7.1.280.0070.00716.08
7.1.270.0030.00616.07
7.1.260.0110.00716.26
7.1.250.0030.01315.83
7.1.200.0060.00816.21
7.1.100.0030.01018.57
7.1.70.0050.00317.19
7.1.60.0030.02319.47
7.1.50.0040.00817.45
7.1.00.0030.07722.80
7.0.200.0040.01115.45
7.0.80.0130.07020.43
7.0.70.0070.05720.43
7.0.60.0030.08020.45
7.0.50.0370.08720.70
7.0.40.0200.07020.32
7.0.30.0070.05320.43
7.0.20.0100.05020.52
7.0.10.0170.07320.36
7.0.00.0100.08720.53
5.6.280.0030.07321.45
5.6.230.0170.03321.00
5.6.220.0170.08020.95
5.6.210.0100.08321.05
5.6.200.0070.05021.44
5.6.190.0100.04721.26
5.6.180.0070.05021.44
5.6.170.0070.08321.36
5.6.160.0030.09021.32
5.6.150.0170.07321.43
5.6.140.0100.05721.23
5.6.130.0130.06721.46
5.6.120.0130.07721.24
5.6.110.0130.07321.30
5.6.100.0030.08721.22
5.6.90.0100.05021.46
5.6.80.0100.07720.95
5.6.70.0100.07320.81
5.6.60.0100.08320.61
5.6.50.0030.08720.82
5.6.40.0070.08020.75
5.6.30.0030.07320.78
5.6.20.0100.07720.75
5.6.10.0030.08320.95
5.6.00.0070.08020.60
5.5.370.0030.05020.92
5.5.360.0170.08020.85
5.5.350.0070.06720.84
5.5.340.0100.07721.27
5.5.330.0130.07721.21
5.5.320.0200.04321.20
5.5.310.0070.08721.34
5.5.300.0070.08320.98
5.5.290.0170.07021.27
5.5.280.0170.07321.20
5.5.270.0100.07721.29
5.5.260.0030.07021.21
5.5.250.0070.05320.85
5.5.240.0100.08320.58
5.5.230.0030.08320.46
5.5.220.0070.07720.57
5.5.210.0100.04020.67
5.5.200.0100.07320.64
5.5.190.0130.05320.33
5.5.180.0070.08020.64
5.5.160.0200.04720.59
5.5.150.0070.04720.54
5.5.140.0100.07720.57
5.5.130.0070.06720.64
5.5.120.0130.07020.54
5.5.110.0100.08020.68
5.5.100.0100.05320.38
5.5.90.0030.05320.54
5.5.80.0030.05020.55
5.5.70.0100.07020.52
5.5.60.0070.07720.52
5.5.50.0100.07320.30
5.5.40.0100.07320.43
5.5.30.0130.06720.54
5.5.20.0100.08020.54
5.5.10.0100.03320.42
5.5.00.0100.07720.40
5.4.450.0070.07719.49
5.4.440.0100.07319.81
5.4.430.0130.07719.72
5.4.420.0070.06319.62
5.4.410.0000.04319.50
5.4.400.0100.07319.40
5.4.390.0170.07319.31
5.4.380.0070.04319.48
5.4.370.0030.08319.59
5.4.360.0230.05019.51
5.4.350.0070.07719.41
5.4.340.0170.07319.27
5.4.320.0030.08719.41
5.4.310.0130.07019.11
5.4.300.0130.07019.61
5.4.290.0070.06019.29
5.4.280.0100.06019.35
5.4.270.0100.04719.49
5.4.260.0130.06319.48
5.4.250.0000.08319.55
5.4.240.0030.06719.40
5.4.230.0170.04719.11
5.4.220.0030.08719.30
5.4.210.0130.07719.16
5.4.200.0130.07719.30
5.4.190.0100.05719.47
5.4.180.0030.05019.30
5.4.170.0030.06019.25
5.4.160.0070.07319.27
5.4.150.0100.07319.47
5.4.140.0170.06716.77
5.4.130.0000.04316.86
5.4.120.0070.07716.81
5.4.110.0100.07016.83
5.4.100.0070.07016.70
5.4.90.0100.04316.80
5.4.80.0030.07316.66
5.4.70.0130.04016.66
5.4.60.0100.06716.80
5.4.50.0070.04316.79
5.4.40.0130.07016.84
5.4.30.0070.07016.77
5.4.20.0170.04016.76
5.4.10.0000.07716.84
5.4.00.0070.07316.17
5.3.290.0100.07314.93
5.3.280.0030.08714.86
5.3.270.0170.07014.79
5.3.260.0030.04714.88
5.3.250.0030.08314.78
5.3.240.0030.07714.92
5.3.230.0000.08314.87
5.3.220.0100.07014.85
5.3.210.0100.07014.88
5.3.200.0000.05714.71
5.3.190.0100.07314.84
5.3.180.0100.06714.88
5.3.170.0070.05314.77
5.3.160.0030.08014.82
5.3.150.0100.06714.71
5.3.140.0070.03714.75
5.3.130.0030.04714.79
5.3.120.0100.07714.70
5.3.110.0030.04314.82
5.3.100.0070.05314.30
5.3.90.0030.08014.18
5.3.80.0100.03714.20
5.3.70.0100.07014.29
5.3.60.0130.06714.27
5.3.50.0000.08014.23
5.3.40.0030.06014.12
5.3.30.0170.06014.11
5.3.20.0100.07013.88
5.3.10.0100.05313.82
5.3.00.0070.06313.78
5.2.170.0100.05012.38
5.2.160.0130.05712.38
5.2.150.0030.06312.38
5.2.140.0070.03312.38
5.2.130.0100.02712.38
5.2.120.0070.06012.38
5.2.110.0070.06012.38
5.2.100.0070.04012.38
5.2.90.0030.04312.38
5.2.80.0030.04012.38
5.2.70.0100.04712.38
5.2.60.0070.02712.38
5.2.50.0030.02712.38
5.2.40.0030.02712.38
5.2.30.0030.05712.38
5.2.20.0030.02712.38
5.2.10.0030.03312.38
5.2.00.0000.07012.38
5.1.60.0030.02312.38
5.1.50.0130.02312.38
5.1.40.0030.02312.38
5.1.30.0000.06012.38
5.1.20.0070.05312.38
5.1.10.0100.04712.38
5.1.00.0070.05712.38
5.0.50.0000.05312.38
5.0.40.0030.02712.38
5.0.30.0030.05312.38
5.0.20.0070.02712.38
5.0.10.0000.03712.38
5.0.00.0000.03712.38
4.4.90.0030.02312.38
4.4.80.0030.03012.38
4.4.70.0030.02312.38
4.4.60.0030.03012.38
4.4.50.0030.03012.38
4.4.40.0000.02712.38
4.4.30.0030.01312.38
4.4.20.0030.02312.38
4.4.10.0030.01312.38
4.4.00.0100.03712.38
4.3.110.0000.02012.38
4.3.100.0070.03012.38
4.3.90.0000.02012.38
4.3.80.0000.02712.38
4.3.70.0070.01712.38
4.3.60.0030.01312.38
4.3.50.0030.01712.38
4.3.40.0030.02012.38
4.3.30.0030.01712.38
4.3.20.0030.01312.38
4.3.10.0000.01712.38
4.3.00.0000.01712.38

preferences:
158.95 ms | 403 KiB | 5 Q