3v4l.org

run code in 300+ PHP versions simultaneously
<?php function contextCheck( $context = false ) { # URL Paremeter Checker # If the infomation passed is a string and isn't empty, grab URL paremeter if( !empty( $context ) and is_string( $context ) ) { # Check if the URL Parameter even exists if ( isset( $_GET["{$context}"] ) ) { $URL_Parameter = $_GET["{$context}"]; # If the URL Parameter is a string and isn't empty, return true if( ( strlen( $URL_Parameter ) > 0 ) and is_string( $URL_Parameter )) { return $URL_Parameter; } } } else { return false; } } $_GET['foo'] = '12'; $_GET['bar'] = '0'; print( contextCheck( 'foo' ) ); print( contextCheck( 'bar' ) ); # This doesn't output :[ ?>

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.40.0140.00018.59
8.3.30.0070.01118.71
8.3.20.0060.00318.62
8.3.10.0000.00818.60
8.3.00.0030.00519.38
8.2.170.0140.00722.96
8.2.160.0210.00018.96
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00926.16
8.2.120.0080.00021.09
8.2.110.0080.00319.37
8.2.100.0040.00818.03
8.2.90.0000.00819.70
8.2.80.0000.00818.04
8.2.70.0080.00018.16
8.2.60.0090.00017.89
8.2.50.0030.00618.10
8.2.40.0040.00419.47
8.2.30.0090.00017.80
8.2.20.0090.00017.55
8.2.10.0060.00317.86
8.2.00.0070.00017.71
8.1.270.0030.00523.99
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0060.00617.52
8.1.230.0110.00022.75
8.1.220.0060.00317.74
8.1.210.0060.00318.88
8.1.200.0040.00417.35
8.1.190.0000.00917.35
8.1.180.0050.00318.10
8.1.170.0030.00618.52
8.1.160.0000.00918.49
8.1.150.0000.00718.59
8.1.140.0040.00417.38
8.1.130.0040.00419.23
8.1.120.0040.00417.36
8.1.110.0040.00417.44
8.1.100.0000.00817.54
8.1.90.0040.00417.43
8.1.80.0040.00417.44
8.1.70.0040.00417.45
8.1.60.0060.00317.52
8.1.50.0040.00417.49
8.1.40.0040.00417.46
8.1.30.0040.00417.69
8.1.20.0000.00717.63
8.1.10.0030.00617.48
8.1.00.0070.00017.40
8.0.300.0060.00319.72
8.0.290.0050.00316.75
8.0.280.0030.00317.89
8.0.270.0040.00417.25
8.0.260.0070.00016.84
8.0.250.0040.00416.80
8.0.240.0040.00417.00
8.0.230.0030.00616.84
8.0.220.0070.00016.92
8.0.210.0020.00716.95
8.0.200.0030.00316.83
8.0.190.0000.00816.90
8.0.180.0040.00416.81
8.0.170.0040.00416.95
8.0.160.0000.00716.86
8.0.150.0060.00316.80
8.0.140.0000.00816.79
8.0.130.0000.00613.35
8.0.120.0040.00416.79
8.0.110.0000.00716.96
8.0.100.0040.00416.78
8.0.90.0000.00716.95
8.0.80.0130.00716.96
8.0.70.0040.00416.96
8.0.60.0040.00416.75
8.0.50.0060.00316.79
8.0.30.0060.01517.03
8.0.20.0110.00817.00
8.0.10.0000.00716.84
8.0.00.0010.01616.75
7.4.330.0000.00512.97
7.4.320.0040.00416.53
7.4.300.0000.00616.58
7.4.290.0060.00316.53
7.4.280.0030.00316.52
7.4.270.0040.00716.47
7.4.260.0000.00613.31
7.4.250.0070.00216.48
7.4.240.0000.00616.53
7.4.230.0070.00016.58
7.4.220.0160.01016.58
7.4.210.0070.01116.55
7.4.200.0000.00716.50
7.4.190.0080.00016.45
7.4.160.0080.00816.50
7.4.150.0090.01216.67
7.4.140.0030.01417.86
7.4.130.0130.01316.38
7.4.120.0090.00916.53
7.4.110.0040.01616.66
7.4.100.0040.01216.50
7.4.90.0120.00616.55
7.4.80.0090.00919.39
7.4.70.0070.01416.53
7.4.60.0130.00516.46
7.4.50.0000.00516.61
7.4.40.0040.01116.40
7.4.30.0100.00716.39
7.4.10.0090.00915.01
7.4.00.0080.01014.97
7.3.330.0040.00413.43
7.3.320.0030.00313.16
7.3.310.0040.00416.23
7.3.300.0030.00316.29
7.3.290.0080.00916.38
7.3.280.0060.00916.36
7.3.270.0100.01016.34
7.3.260.0070.01316.53
7.3.240.0030.01316.39
7.3.230.0070.01016.43
7.3.210.0170.00316.55
7.3.200.0100.01016.41
7.3.190.0100.00716.43
7.3.180.0150.00416.37
7.3.170.0190.00316.42
7.3.160.0090.00616.46
7.3.130.0070.01014.83
7.3.120.0060.00915.02
7.3.110.0110.00514.81
7.3.100.0110.00214.85
7.3.90.0060.00814.58
7.3.80.0020.00914.74
7.3.70.0070.00714.84
7.3.60.0050.00914.92
7.3.50.0110.00214.56
7.3.40.0040.00714.96
7.3.30.0070.00714.77
7.3.20.0030.00916.61
7.3.10.0030.01216.81
7.3.00.0010.00716.55
7.2.330.0140.00316.63
7.2.320.0090.00916.82
7.2.310.0150.00316.79
7.2.300.0130.00716.38
7.2.290.0150.00616.53
7.2.260.0110.00814.92
7.2.250.0050.01015.18
7.2.240.0050.00915.18
7.2.230.0070.00814.89
7.2.220.0070.00815.07
7.2.210.0070.00415.17
7.2.200.0070.00715.16
7.2.190.0050.01015.20
7.2.180.0060.00514.94
7.2.170.0080.00414.97
7.2.160.0030.00914.89
7.2.150.0050.01016.84
7.2.140.0040.01016.91
7.2.130.0040.01216.79
7.2.120.0040.00716.94
7.2.110.0050.00816.82
7.2.100.0090.00516.81
7.2.90.0050.00717.03
7.2.80.0060.00716.80
7.2.70.0050.01016.85
7.2.60.0030.01016.91
7.2.50.0060.01117.02
7.2.40.0070.00816.98
7.2.30.0050.00916.87
7.2.20.0060.00516.89
7.2.10.0070.00816.90
7.2.00.0090.00516.97
7.1.330.0050.00915.88
7.1.320.0050.01115.74
7.1.310.0060.00715.92
7.1.300.0030.01015.63
7.1.290.0050.00815.78
7.1.280.0090.00315.96
7.1.270.0030.00915.81
7.1.260.0060.00815.76
7.1.250.0060.00715.73
7.1.240.0040.00816.01
7.1.230.0070.00215.85
7.1.220.0050.01115.65
7.1.210.0080.00415.85
7.1.200.0030.00715.80
7.1.190.0030.00915.85
7.1.180.0040.00515.75
7.1.170.0060.00815.94
7.1.160.0050.00915.73
7.1.150.0050.00515.91
7.1.140.0050.00915.80
7.1.130.0090.00515.95
7.1.120.0080.00615.74
7.1.110.0040.00915.75
7.1.100.0040.01115.80
7.1.90.0000.01415.96
7.1.80.0080.00615.70
7.1.70.0050.00816.29
7.1.60.0070.00716.19
7.1.50.0060.00616.16
7.1.40.0120.00215.72
7.1.30.0040.00815.66
7.1.20.0050.00815.63
7.1.10.0070.00815.82
7.1.00.0050.01517.97
7.0.330.0090.00415.53
7.0.320.0050.00615.55
7.0.310.0070.00715.30
7.0.300.0040.01115.52
7.0.290.0000.01015.51
7.0.280.0050.00715.42
7.0.270.0050.00915.33
7.0.260.0040.00715.29
7.0.250.0060.00815.46
7.0.240.0090.00515.51
7.0.230.0100.00415.28
7.0.220.0030.00815.43
7.0.210.0050.00715.40
7.0.200.0060.01016.00
7.0.190.0030.01215.39
7.0.180.0060.00815.47
7.0.170.0070.00615.39
7.0.160.0070.00715.51
7.0.150.0050.00815.36
7.0.140.0030.03217.67
7.0.130.0040.00815.27
7.0.120.0060.02817.53
7.0.110.0020.00715.47
7.0.100.0040.00815.38
7.0.90.0060.00615.12
7.0.80.0050.00715.33
7.0.70.0060.00715.29
7.0.60.0030.03516.85
7.0.50.0040.01816.30
7.0.40.0060.01914.93
7.0.30.0110.01614.89
7.0.20.0090.03014.95
7.0.10.0070.02514.80
7.0.00.0090.02714.87
5.6.400.0070.00714.43
5.6.390.0050.00314.53
5.6.380.0100.00114.50
5.6.370.0050.00714.46
5.6.360.0040.00914.44
5.6.350.0040.00914.32
5.6.340.0060.00614.38
5.6.330.0100.00314.40
5.6.320.0050.00914.47
5.6.310.0080.00814.46
5.6.300.0070.00814.55
5.6.290.0080.00514.33
5.6.280.0050.02916.55
5.6.270.0080.00614.45
5.6.260.0080.00714.28
5.6.250.0070.00714.45
5.6.240.0020.00914.41
5.6.230.0050.00914.43
5.6.220.0040.01314.58
5.6.210.0000.02916.52
5.6.200.0060.01715.63
5.6.190.0030.03115.51
5.6.180.0060.03015.62
5.6.170.0040.02015.64
5.6.160.0070.03015.59
5.6.150.0050.03115.69
5.6.140.0070.02715.65
5.6.130.0040.03415.71
5.6.120.0030.02115.60
5.6.110.0030.02315.73
5.6.100.0010.02815.55
5.6.90.0080.02715.73
5.6.80.0030.03215.50
5.6.70.0060.02915.38
5.6.60.0100.02515.43
5.6.50.0100.02615.42
5.6.40.0040.02615.48
5.6.30.0040.03015.46
5.6.20.0070.02915.39
5.6.10.0060.02015.35
5.6.00.0090.01715.50
5.5.380.0030.00814.40
5.5.370.0060.00514.29
5.5.360.0050.00714.24
5.5.350.0060.03416.51
5.5.340.0040.01715.50
5.5.330.0060.03315.60
5.5.320.0000.02515.60
5.5.310.0100.02915.52
5.5.300.0040.02115.50
5.5.290.0040.02015.74
5.5.280.0070.02015.56
5.5.270.0060.02815.60
5.5.260.0040.02715.66
5.5.250.0020.03015.37
5.5.240.0080.01715.28
5.5.230.0110.02515.31
5.5.220.0070.03015.24
5.5.210.0050.02215.40
5.5.200.0040.02815.35
5.5.190.0050.02315.29
5.5.180.0060.03215.23
5.5.170.0060.00514.27
5.5.160.0060.03115.36
5.5.150.0090.02615.26
5.5.140.0030.03415.35
5.5.130.0030.02515.48
5.5.120.0050.03215.21
5.5.110.0040.03315.29
5.5.100.0070.03015.21
5.5.90.0060.02915.29
5.5.80.0010.02915.27
5.5.70.0100.03015.28
5.5.60.0070.03015.07
5.5.50.0090.02615.28
5.5.40.0030.02515.13
5.5.30.0050.03015.22
5.5.20.0080.03115.33
5.5.10.0080.01815.32
5.5.00.0040.03415.25
5.4.450.0070.02514.09
5.4.440.0060.02814.02
5.4.430.0060.03114.11
5.4.420.0040.03214.11
5.4.410.0010.01914.01
5.4.400.0070.02813.90
5.4.390.0060.02414.01
5.4.380.0050.02113.93
5.4.370.0030.02913.91
5.4.360.0060.02813.88
5.4.350.0060.02813.91
5.4.340.0060.01913.95
5.4.330.0030.00811.34
5.4.320.0040.01813.91
5.4.310.0050.01913.96
5.4.300.0040.02913.95
5.4.290.0030.02914.04
5.4.280.0080.02614.02
5.4.270.0060.01913.98
5.4.260.0030.03113.94
5.4.250.0060.03014.03
5.4.240.0030.02413.92
5.4.230.0050.01913.91
5.4.220.0040.03113.91
5.4.210.0050.02413.96
5.4.200.0070.01913.96
5.4.190.0040.02213.94
5.4.180.0100.01313.93
5.4.170.0040.03013.97
5.4.160.0030.02413.96
5.4.150.0030.02914.01
5.4.140.0030.03212.91
5.4.130.0130.02012.98
5.4.120.0080.02613.13
5.4.110.0080.02513.03
5.4.100.0070.02413.01
5.4.90.0060.02913.07
5.4.80.0050.02913.02
5.4.70.0040.01813.03
5.4.60.0030.01912.96
5.4.50.0030.01913.05
5.4.40.0080.02013.09
5.4.30.0070.02313.10
5.4.20.0010.02813.01
5.4.10.0070.01513.08
5.4.00.0030.02212.90
5.3.290.0080.02212.36
5.3.280.0050.02912.31
5.3.270.0090.02812.31
5.3.260.0050.01712.30
5.3.250.0040.01812.35
5.3.240.0100.02412.30
5.3.230.0070.02512.26
5.3.220.0080.02212.28
5.3.210.0090.02712.26
5.3.200.0060.02812.29
5.3.190.0090.02612.28
5.3.180.0070.02812.30
5.3.170.0040.02112.32
5.3.160.0050.01712.31
5.3.150.0060.02012.32
5.3.140.0030.01912.21
5.3.130.0070.02612.28
5.3.120.0020.01912.27
5.3.110.0040.02112.33
5.3.100.0060.02812.10
5.3.90.0040.02812.11
5.3.80.0080.02212.08
5.3.70.0070.02812.04
5.3.60.0020.03112.11
5.3.50.0080.02712.08
5.3.40.0040.03212.09
5.3.30.0080.02612.04
5.3.20.0070.02711.95
5.3.10.0020.03111.97
5.3.00.0010.02611.96
5.2.170.0030.06711.18
5.2.160.0030.06311.13
5.2.150.0100.03311.14
5.2.140.0070.06311.03
5.2.130.0030.06711.09
5.2.120.0030.04311.20
5.2.110.0100.05711.01
5.2.100.0070.06011.10
5.2.90.0130.05011.16
5.2.80.0000.06711.05
5.2.70.0070.05010.93
5.2.60.0030.04311.11
5.2.50.0030.05311.09
5.2.40.0070.06010.99
5.2.30.0070.04011.03
5.2.20.0030.05711.16
5.2.10.0100.05311.06
5.2.00.0100.05310.68
5.1.60.0000.0479.96
5.1.50.0070.05010.04
5.1.40.0000.03710.04
5.1.30.0030.02710.36
5.1.20.0030.03310.34
5.1.10.0100.04710.05
5.1.00.0030.05710.11
5.0.50.0000.0478.57
5.0.40.0030.0378.34
5.0.30.0000.0338.30
5.0.20.0030.0308.40
5.0.10.0070.0408.26
5.0.00.0070.0608.17
4.4.90.0070.0208.17
4.4.80.0030.0338.17
4.4.70.0070.0278.17
4.4.60.0070.0338.17
4.4.50.0030.0338.17
4.4.40.0100.0378.17
4.4.30.0030.0278.17
4.4.20.0000.0378.17
4.4.10.0030.0308.17
4.4.00.0030.0308.17
4.3.110.0000.0378.17
4.3.100.0030.0338.17
4.3.90.0030.0378.17
4.3.80.0000.0438.17
4.3.70.0000.0408.17
4.3.60.0100.0278.17
4.3.50.0000.0408.17
4.3.40.0030.0538.17
4.3.30.0030.0308.17
4.3.20.0000.0238.17
4.3.10.0030.0338.17
4.3.00.0000.0308.17

preferences:
39.91 ms | 400 KiB | 5 Q