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 ) ) || $context === 0) { # 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( !empty( $URL_Parameter ) 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.60.0090.00616.50
8.3.50.0140.00517.22
8.3.40.0140.00018.83
8.3.30.0140.00018.76
8.3.20.0000.00818.73
8.3.10.0050.00318.77
8.3.00.0040.00419.38
8.2.180.0070.01116.48
8.2.170.0070.00722.96
8.2.160.0090.00618.82
8.2.150.0050.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00020.98
8.2.110.0090.00020.40
8.2.100.0040.00818.04
8.2.90.0040.00418.28
8.2.80.0000.00719.21
8.2.70.0030.00617.75
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0040.00418.34
8.2.30.0100.00019.33
8.2.20.0060.00317.73
8.2.10.0030.00617.64
8.2.00.0000.00817.75
8.1.280.0110.00825.92
8.1.270.0030.00623.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.02
8.1.230.0040.00721.00
8.1.220.0050.00317.79
8.1.210.0040.00418.97
8.1.200.0090.00017.22
8.1.190.0040.00417.52
8.1.180.0080.00018.10
8.1.170.0060.00318.71
8.1.160.0050.00218.81
8.1.150.0050.00518.60
8.1.140.0000.00717.46
8.1.130.0000.00717.33
8.1.120.0040.00417.55
8.1.110.0080.00017.47
8.1.100.0040.00417.39
8.1.90.0040.00417.37
8.1.80.0040.00417.47
8.1.70.0000.00717.42
8.1.60.0060.00317.55
8.1.50.0040.00417.43
8.1.40.0040.00417.57
8.1.30.0040.00417.67
8.1.20.0070.00017.68
8.1.10.0000.00817.49
8.1.00.0040.00417.53
8.0.300.0040.00420.12
8.0.290.0000.00717.18
8.0.280.0050.00218.45
8.0.270.0030.00316.75
8.0.260.0000.00816.81
8.0.250.0040.00416.94
8.0.240.0070.00016.84
8.0.230.0000.00916.85
8.0.220.0030.00316.89
8.0.210.0030.00316.82
8.0.200.0040.00416.97
8.0.190.0000.00716.97
8.0.180.0070.00016.91
8.0.170.0000.00816.93
8.0.160.0030.00616.80
8.0.150.0030.00616.94
8.0.140.0080.00016.77
8.0.130.0060.00013.37
8.0.120.0000.00916.74
8.0.110.0080.00016.77
8.0.100.0000.00816.85
8.0.90.0020.00516.92
8.0.80.0140.00016.78
8.0.70.0040.00416.73
8.0.60.0000.00816.77
8.0.50.0030.00516.79
8.0.30.0120.00616.98
8.0.20.0080.01216.88
8.0.10.0000.00817.14
8.0.00.0130.00516.66
7.4.330.0000.00513.05
7.4.320.0000.00616.52
7.4.300.0040.00416.62
7.4.290.0030.00616.38
7.4.280.0030.00616.47
7.4.270.0030.00316.53
7.4.260.0000.00513.18
7.4.250.0030.00616.36
7.4.240.0030.00316.54
7.4.230.0000.00716.50
7.4.220.0060.01216.68
7.4.210.0110.00416.64
7.4.200.0080.00016.59
7.4.190.0040.00416.68
7.4.160.0130.00416.63
7.4.150.0090.00916.51
7.4.140.0130.00617.86
7.4.130.0150.00616.56
7.4.120.0080.00816.42
7.4.110.0110.01116.78
7.4.100.0120.00416.45
7.4.90.0060.01216.45
7.4.80.0090.01519.39
7.4.70.0130.00716.42
7.4.60.0120.00616.56
7.4.50.0030.00516.41
7.4.40.0090.00916.64
7.4.30.0060.00916.39
7.4.00.0060.01014.88
7.3.330.0060.00013.38
7.3.320.0000.00613.36
7.3.310.0040.00416.40
7.3.300.0030.00316.32
7.3.290.0110.00716.39
7.3.280.0090.00616.36
7.3.270.0060.01216.63
7.3.260.0120.00616.59
7.3.240.0100.00616.32
7.3.230.0070.01316.71
7.3.210.0040.01516.33
7.3.200.0170.00016.41
7.3.190.0070.01016.41
7.3.180.0110.00616.65
7.3.170.0060.01616.38
7.3.160.0150.00316.61
7.3.120.0120.00414.81
7.3.110.0100.01014.85
7.3.100.0110.00714.95
7.3.90.0110.00414.95
7.3.80.0070.01014.94
7.3.70.0120.00314.87
7.3.60.0030.01014.99
7.3.50.0060.00914.98
7.3.40.0030.00614.77
7.3.30.0090.00614.96
7.3.20.0030.01016.71
7.3.10.0030.01316.88
7.3.00.0060.00716.57
7.2.330.0130.01216.63
7.2.320.0110.00616.80
7.2.310.0110.01116.39
7.2.300.0120.00616.40
7.2.290.0070.01016.86
7.2.250.0000.01915.18
7.2.240.0070.01415.16
7.2.230.0070.01114.98
7.2.220.0080.00415.37
7.2.210.0060.01215.02
7.2.200.0130.00315.15
7.2.190.0100.00015.03
7.2.180.0040.01214.97
7.2.170.0090.00615.15
7.2.130.0030.01117.09
7.2.120.0030.00616.75
7.2.110.0030.01017.01
7.2.100.0030.00716.68
7.2.90.0040.00816.79
7.2.80.0060.00617.04
7.2.70.0080.00417.16
7.2.60.0070.00716.73
7.2.50.0060.00617.21
7.2.40.0050.00516.86
7.2.30.0000.01117.11
7.2.20.0130.00016.84
7.2.10.0040.00417.09
7.2.00.0000.01218.18
7.1.330.0120.00315.82
7.1.320.0070.00715.79
7.1.310.0000.01215.66
7.1.300.0040.01115.98
7.1.290.0070.00715.62
7.1.280.0040.00416.02
7.1.270.0070.00715.64
7.1.260.0070.00715.57
7.1.250.0060.00615.97
7.1.240.0050.00515.83
7.1.230.0030.00715.91
7.1.220.0000.00915.66
7.1.210.0080.00615.78
7.1.200.0120.00315.73
7.1.190.0060.00615.69
7.1.180.0070.00315.89
7.1.170.0120.00015.90
7.1.160.0050.00515.82
7.1.150.0060.00615.62
7.1.140.0060.00315.84
7.1.130.0000.01115.82
7.1.120.0030.00615.85
7.1.110.0040.00715.74
7.1.100.0020.00916.91
7.1.90.0050.00315.71
7.1.80.0060.00315.72
7.1.70.0060.00616.33
7.1.60.0060.00817.66
7.1.50.0120.00516.41
7.1.40.0100.00315.71
7.1.30.0040.00716.05
7.1.20.0060.00615.95
7.1.10.0070.00315.96
7.1.00.0050.03719.18
7.0.330.0060.00615.12
7.0.320.0000.01215.50
7.0.310.0000.01015.21
7.0.300.0060.00615.36
7.0.290.0000.01215.37
7.0.280.0060.00315.57
7.0.270.0000.00915.48
7.0.260.0040.00715.21
7.0.250.0030.00715.41
7.0.240.0000.01015.39
7.0.230.0050.00515.59
7.0.220.0060.00615.47
7.0.210.0030.00715.32
7.0.200.0030.00716.00
7.0.190.0070.00315.34
7.0.180.0000.00815.27
7.0.170.0030.00715.31
7.0.160.0030.00615.46
7.0.150.0030.00615.53
7.0.140.0030.03918.63
7.0.130.0030.00715.22
7.0.120.0030.03518.79
7.0.110.0030.01315.62
7.0.100.0050.00315.52
7.0.90.0060.00615.55
7.0.80.0080.00415.40
7.0.70.0040.01115.41
7.0.60.0000.02917.72
7.0.50.0080.02016.72
7.0.40.0060.02315.61
7.0.30.0080.02015.47
7.0.20.0030.02715.72
7.0.10.0100.04015.63
7.0.00.0070.04215.52
5.6.380.0040.01114.36
5.6.370.0030.00914.02
5.6.360.0000.01214.39
5.6.350.0090.00914.17
5.6.340.0090.00314.30
5.6.330.0030.00614.12
5.6.320.0030.00814.30
5.6.310.0080.00414.48
5.6.300.0070.00714.02
5.6.290.0030.00714.16
5.6.280.0050.03717.77
5.6.270.0000.01114.61
5.6.260.0040.00714.30
5.6.250.0070.00713.96
5.6.240.0030.00714.45
5.6.230.0030.00614.27
5.6.220.0070.00714.13
5.6.210.0050.02617.70
5.6.200.0070.03816.30
5.6.190.0020.02916.38
5.6.180.0060.03316.24
5.6.170.0070.04516.45
5.6.160.0050.03416.12
5.6.150.0110.04216.21
5.6.140.0040.04016.30
5.6.130.0080.02516.30
5.6.120.0050.03516.34
5.6.110.0070.04716.29
5.6.100.0080.04216.24
5.6.90.0080.03016.16
5.6.80.0030.02515.96
5.6.70.0010.02615.93
5.6.60.0030.02516.06
5.6.50.0070.03515.96
5.6.40.0080.03115.99
5.6.30.0020.02716.07
5.6.20.0080.04515.99
5.6.10.0050.04115.78
5.6.00.0070.02815.91
5.5.380.0050.00211.18
5.5.370.0060.00611.36
5.5.360.0030.00711.41
5.5.350.0070.04415.87
5.5.340.0060.03014.70
5.5.330.0100.01814.61
5.5.320.0050.02514.65
5.5.310.0050.04314.60
5.5.300.0080.03714.56
5.5.290.0030.02314.58
5.5.280.0060.04014.65
5.5.270.0050.04314.61
5.5.260.0050.03214.57
5.5.250.0060.04114.55
5.5.240.0050.04014.30
5.5.230.0050.03314.30
5.5.220.0070.03214.31
5.5.210.0030.03614.32
5.5.200.0050.03514.25
5.5.190.0030.02214.34
5.5.180.0070.04214.25
5.5.170.0030.00311.18
5.5.160.0070.01814.22
5.5.150.0040.04114.31
5.5.140.0040.04414.27
5.5.130.0050.04014.27
5.5.120.0030.04514.33
5.5.110.0080.03014.26
5.5.100.0050.04214.19
5.5.90.0090.03014.22
5.5.80.0030.03714.17
5.5.70.0050.03714.20
5.5.60.0050.04014.24
5.5.50.0060.02614.21
5.5.40.0060.02514.31
5.5.30.0030.03314.24
5.5.20.0050.02114.24
5.5.10.0080.03814.19
5.5.00.0080.03014.20
5.4.450.0070.04515.31
5.4.440.0090.03715.33
5.4.430.0090.02815.37
5.4.420.0080.03915.35
5.4.410.0050.03715.18
5.4.400.0000.02415.11
5.4.390.0050.02215.13
5.4.380.0060.02115.08
5.4.370.0020.02815.09
5.4.360.0030.02715.15
5.4.350.0070.02715.10
5.4.340.0060.04015.14
5.4.330.0000.00811.18
5.4.320.0060.03915.08
5.4.310.0080.03315.15
5.4.300.0050.03815.12
5.4.290.0050.02215.08
5.4.280.0050.04115.18
5.4.270.0050.04115.13
5.4.260.0080.04015.09
5.4.250.0100.03715.10
5.4.240.0000.02515.17
5.4.230.0000.02815.13
5.4.220.0070.03615.14
5.4.210.0020.03415.14
5.4.200.0030.04615.12
5.4.190.0050.03615.15
5.4.180.0070.04115.10
5.4.170.0120.03415.11
5.4.160.0050.02915.15
5.4.150.0070.03815.17
5.4.140.0040.02413.83
5.4.130.0050.03713.85
5.4.120.0090.03813.83
5.4.110.0070.03313.81
5.4.100.0030.02913.79
5.4.90.0050.03513.75
5.4.80.0070.04013.78
5.4.70.0070.03313.78
5.4.60.0100.03013.78
5.4.50.0050.03813.81
5.4.40.0070.03613.76
5.4.30.0030.03713.87
5.4.20.0070.03613.75
5.4.10.0090.03613.73
5.4.00.0080.03613.51
5.3.290.0050.02312.94
5.3.280.0030.02312.90
5.3.270.0000.02512.89
5.3.260.0050.02012.90
5.3.250.0030.04312.94
5.3.240.0060.01812.91
5.3.230.0020.02512.82
5.3.220.0030.02912.92
5.3.210.0070.02012.79
5.3.200.0030.02512.87
5.3.190.0020.02912.89
5.3.180.0020.04312.88
5.3.170.0030.02512.88
5.3.160.0060.02512.80
5.3.150.0030.02312.89
5.3.140.0050.02312.84
5.3.130.0030.04112.90
5.3.120.0090.03112.91
5.3.110.0040.02712.87
5.3.100.0080.02012.59
5.3.90.0030.02312.59
5.3.80.0050.03812.62
5.3.70.0030.02012.62
5.3.60.0080.02712.51
5.3.50.0020.02512.51
5.3.40.0050.02012.59
5.3.30.0020.02312.54
5.3.20.0030.02212.45
5.3.10.0000.04312.42
5.3.00.0040.04012.51
5.2.170.0050.03211.08
5.2.160.0070.01711.16
5.2.150.0030.02611.21
5.2.140.0050.03311.15
5.2.130.0000.02311.16
5.2.120.0050.02611.09
5.2.110.0060.03011.15
5.2.100.0040.01911.24
5.2.90.0050.03011.09
5.2.80.0080.03111.15
5.2.70.0090.02711.15
5.2.60.0050.03011.13
5.2.50.0000.03211.20
5.2.40.0050.02211.08
5.2.30.0020.03611.07
5.2.20.0030.01711.04
5.2.10.0020.02311.01
5.2.00.0060.02810.97
5.1.60.0050.02510.60
5.1.50.0010.01810.57
5.1.40.0030.02510.61
5.1.30.0050.02810.86
5.1.20.0030.02810.78
5.1.10.0030.03210.62
5.1.00.0050.01510.62
5.0.50.0060.0219.82
5.0.40.0000.0209.78
5.0.30.0020.0279.69
5.0.20.0000.0259.73
5.0.10.0020.0279.69
5.0.00.0030.0309.69
4.4.90.0000.0149.32
4.4.80.0040.0089.32
4.4.70.0000.0169.32
4.4.60.0010.0209.32
4.4.50.0020.0159.32
4.4.40.0020.0299.32
4.4.30.0020.0109.32
4.4.20.0040.0129.32
4.4.10.0020.0199.32
4.4.00.0010.0189.32
4.3.110.0020.0209.32
4.3.100.0020.0129.32
4.3.90.0000.0229.32
4.3.80.0050.0259.32
4.3.70.0020.0189.32
4.3.60.0030.0159.32
4.3.50.0000.0179.32
4.3.40.0020.0309.32
4.3.30.0020.0189.32
4.3.20.0020.0099.32
4.3.10.0000.0199.32
4.3.00.0020.0189.32

preferences:
59.25 ms | 400 KiB | 5 Q