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( trim( $context ) !== false 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( !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.0070.00718.43
8.3.50.0230.01016.35
8.3.40.0120.00318.66
8.3.30.0070.00718.79
8.3.20.0040.00418.78
8.3.10.0050.00318.95
8.3.00.0050.00319.38
8.2.180.0090.00916.48
8.2.170.0140.00022.96
8.2.160.0110.00418.79
8.2.150.0090.00024.18
8.2.140.0120.00324.66
8.2.130.0000.00926.16
8.2.120.0040.00421.07
8.2.110.0090.00020.58
8.2.100.0000.01217.84
8.2.90.0000.00917.75
8.2.80.0050.00318.91
8.2.70.0040.00417.63
8.2.60.0080.00018.16
8.2.50.0080.00018.07
8.2.40.0000.00819.35
8.2.30.0090.00017.68
8.2.20.0000.00917.58
8.2.10.0020.00517.66
8.2.00.0000.00817.76
8.1.280.0070.01025.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00018.89
8.1.230.0040.00817.76
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0040.01117.13
8.1.190.0000.00917.23
8.1.180.0060.00318.10
8.1.170.0050.00318.85
8.1.160.0020.00519.05
8.1.150.0040.00418.61
8.1.140.0000.00817.57
8.1.130.0070.00017.38
8.1.120.0020.00517.54
8.1.110.0070.00017.45
8.1.100.0030.00517.38
8.1.90.0050.00217.51
8.1.80.0000.00717.36
8.1.70.0040.00417.36
8.1.60.0020.00517.55
8.1.50.0070.00017.51
8.1.40.0000.00817.53
8.1.30.0050.00317.55
8.1.20.0040.00417.59
8.1.10.0080.00017.57
8.1.00.0040.00417.53
8.0.300.0090.00018.77
8.0.290.0070.00016.63
8.0.280.0030.00518.64
8.0.270.0030.00317.27
8.0.260.0060.00016.83
8.0.250.0000.00816.86
8.0.240.0030.00516.97
8.0.230.0040.00416.84
8.0.220.0050.00216.86
8.0.210.0050.00216.96
8.0.200.0030.00317.01
8.0.190.0050.00216.97
8.0.180.0000.00716.81
8.0.170.0060.00316.96
8.0.160.0080.00016.91
8.0.150.0000.00816.88
8.0.140.0050.00316.88
8.0.130.0030.00313.29
8.0.120.0060.00316.75
8.0.110.0040.00416.89
8.0.100.0000.00816.96
8.0.90.0000.00816.95
8.0.80.0070.00716.96
8.0.70.0000.00716.94
8.0.60.0050.00316.72
8.0.50.0000.00816.77
8.0.30.0100.01017.09
8.0.20.0120.01016.96
8.0.10.0040.00417.02
8.0.00.0100.01116.89
7.4.330.0060.00013.07
7.4.320.0080.00016.57
7.4.300.0030.00316.61
7.4.290.0060.00316.52
7.4.280.0000.01016.52
7.4.270.0040.00416.61
7.4.260.0050.00013.19
7.4.250.0040.00416.50
7.4.240.0000.00716.54
7.4.230.0000.00716.60
7.4.220.0090.01016.55
7.4.210.0060.01316.46
7.4.200.0030.00416.60
7.4.190.0000.00716.76
7.4.160.0130.00616.57
7.4.150.0140.00316.58
7.4.140.0120.00617.86
7.4.130.0090.01516.45
7.4.120.0070.01016.57
7.4.110.0120.00616.45
7.4.100.0120.00616.45
7.4.90.0110.00616.59
7.4.80.0140.00916.55
7.4.70.0030.01416.63
7.4.60.0090.00616.64
7.4.50.0030.00316.62
7.4.40.0100.00716.59
7.4.30.0110.00516.63
7.4.00.0140.00414.68
7.3.330.0080.00013.37
7.3.320.0000.00513.36
7.3.310.0050.00216.42
7.3.300.0040.00416.34
7.3.290.0100.00816.38
7.3.280.0090.01216.38
7.3.270.0070.01816.39
7.3.260.0180.00016.44
7.3.240.0110.00516.54
7.3.230.0190.00416.44
7.3.210.0040.01216.35
7.3.200.0090.01316.46
7.3.190.0080.00816.48
7.3.180.0060.01316.52
7.3.170.0100.01016.51
7.3.160.0090.00616.58
7.3.120.0070.01014.61
7.2.330.0120.00616.47
7.2.320.0110.00516.85
7.2.310.0040.01516.74
7.2.300.0100.01016.78
7.2.290.0120.00616.61
7.2.120.0030.00916.61
7.2.110.0080.00416.77
7.2.100.0070.00716.66
7.2.90.0090.00916.66
7.2.80.0090.00316.75
7.2.70.0030.00917.11
7.2.60.0000.01516.97
7.2.50.0040.01117.04
7.2.40.0100.00716.76
7.2.30.0040.01116.92
7.2.20.0060.00916.99
7.2.10.0030.00616.78
7.2.00.0030.00817.00
7.1.240.0000.00815.85
7.1.230.0080.00415.59
7.1.220.0040.00715.69
7.1.210.0060.00615.86
7.1.200.0030.01015.80
7.1.190.0000.01115.98
7.1.180.0060.00615.91
7.1.170.0040.01115.60
7.1.160.0100.00315.79
7.1.150.0030.01015.61
7.1.140.0030.01015.90
7.1.130.0060.00615.97
7.1.120.0030.01015.75
7.1.110.0070.00715.77
7.1.100.0070.00716.00
7.1.90.0040.00815.90
7.1.80.0040.01115.80
7.1.70.0020.01316.65
7.1.60.0080.00917.53
7.1.50.0150.01225.41
7.1.40.0070.00715.86
7.1.30.0000.01615.76
7.1.20.0120.00015.71
7.1.10.0090.00615.53
7.1.00.0040.02019.21
7.0.320.0070.00415.49
7.0.310.0070.00315.25
7.0.300.0030.00915.52
7.0.290.0110.00315.49
7.0.280.0090.00615.38
7.0.270.0060.00315.36
7.0.260.0040.00815.36
7.0.250.0040.00415.56
7.0.240.0100.00315.35
7.0.230.0070.00715.44
7.0.220.0070.00715.34
7.0.210.0030.01015.19
7.0.200.0020.00916.12
7.0.190.0040.00815.38
7.0.180.0030.01015.39
7.0.170.0060.00915.43
7.0.160.0080.00315.47
7.0.150.0000.01315.36
7.0.140.0070.03718.76
7.0.130.0110.00415.39
7.0.120.0080.02018.64
7.0.110.0060.00915.25
7.0.100.0000.01315.57
7.0.90.0110.00415.29
7.0.80.0040.01115.57
7.0.70.0080.00415.45
7.0.60.0110.03717.69
7.0.50.0060.04616.59
7.0.40.1990.02516.84
7.0.30.1740.02416.73
7.0.20.2000.02516.79
7.0.10.1850.02516.84
7.0.00.1820.02816.79
5.6.380.0000.00914.43
5.6.370.0110.01114.51
5.6.360.0140.00314.54
5.6.350.0110.00214.61
5.6.340.0070.00714.48
5.6.330.0100.00714.69
5.6.320.0170.00014.61
5.6.310.0080.00814.68
5.6.300.0090.00614.37
5.6.290.0110.00414.67
5.6.280.0050.04417.70
5.6.270.0000.01314.75
5.6.260.0120.00314.32
5.6.250.0060.00614.61
5.6.240.0070.00714.43
5.6.230.0150.00014.43
5.6.220.0110.00614.77
5.6.210.0060.03117.70
5.6.200.0070.02316.28
5.6.190.2000.02517.43
5.6.180.1800.02717.37
5.6.170.1930.02517.56
5.6.160.1680.02517.40
5.6.150.1840.02217.33
5.6.140.1980.02117.39
5.6.130.1950.02617.49
5.6.120.0670.02317.37
5.6.110.0070.02317.39
5.6.100.1980.03017.21
5.6.90.1910.02517.21
5.6.80.2170.02517.07
5.6.70.2100.02017.09
5.6.60.1880.02317.00
5.6.50.1830.02317.03
5.6.40.1770.02217.15
5.6.30.1950.02316.97
5.6.20.2010.01916.92
5.6.10.2150.02116.95
5.6.00.2150.02717.01
5.5.380.0110.00011.49
5.5.370.0100.00311.28
5.5.360.0040.01211.21
5.5.350.0100.04015.76
5.5.340.0060.04314.48
5.5.330.0980.02715.58
5.5.320.1830.02315.54
5.5.310.2100.02315.70
5.5.300.1600.02615.80
5.5.290.2120.02215.60
5.5.280.0110.02215.58
5.5.270.0040.02215.78
5.5.260.1900.02015.66
5.5.250.2120.01815.60
5.5.240.1930.02315.26
5.5.230.2050.02215.34
5.5.220.1950.02415.22
5.5.210.1930.02015.37
5.5.200.1820.02415.22
5.5.190.1700.01715.32
5.5.180.1640.02015.37
5.5.170.0120.00314.09
5.5.160.1980.01815.24
5.5.150.2050.02315.42
5.5.140.2060.02615.33
5.5.130.1740.02215.27
5.5.120.1800.02015.31
5.5.110.2710.01515.42
5.5.100.0060.02115.22
5.5.90.0820.03515.06
5.5.80.1700.02515.14
5.5.70.1820.02215.33
5.5.60.1900.02215.31
5.5.50.1720.02015.29
5.5.40.2120.02015.38
5.5.30.2160.02215.18
5.5.20.1800.02315.23
5.5.10.1550.02215.20
5.5.00.2140.02715.25
5.4.450.1820.02315.38
5.4.440.0080.04215.34
5.4.430.0830.04315.18
5.4.420.1980.02315.36
5.4.410.1830.02115.30
5.4.400.1660.02215.07
5.4.390.1520.02415.16
5.4.380.2150.01915.12
5.4.370.2050.01715.13
5.4.360.1830.01914.89
5.4.350.1770.02315.21
5.4.340.1880.02115.24
5.4.330.0120.00310.86
5.4.320.2100.02115.10
5.4.310.2130.02015.10
5.4.300.1860.02115.13
5.4.290.1690.02015.18
5.4.280.1770.02315.07
5.4.270.1890.02015.19
5.4.260.0340.02715.13
5.4.250.0080.02315.01
5.4.240.2020.02415.16
5.4.230.1670.02314.83
5.4.220.1720.01815.06
5.4.210.1700.02515.05
5.4.200.1960.02615.01
5.4.190.2130.01815.03
5.4.180.1800.02015.10
5.4.170.1710.02215.04
5.4.160.1760.01715.03
5.4.150.0050.04315.10
5.4.140.0850.02313.68
5.4.130.1750.01813.65
5.4.120.1730.01913.88
5.4.110.1620.02013.91
5.4.100.1740.01313.79
5.4.90.1650.02113.77
5.4.80.1710.01813.90
5.4.70.2120.02513.82
5.4.60.1720.01513.87
5.4.50.1640.02113.65
5.4.40.1760.02113.67
5.4.30.1730.02213.66
5.4.20.2100.02013.84
5.4.10.2090.01713.61
5.4.00.1900.02013.40
5.3.290.2210.01712.75
5.3.280.1690.02012.52
5.3.270.1720.02312.63
5.3.260.0070.04312.77
5.3.250.0050.02512.63
5.3.240.1750.02312.55
5.3.230.2060.01812.50
5.3.220.1750.01812.61
5.3.210.1570.01812.41
5.3.200.1660.01912.50
5.3.190.1680.02012.53
5.3.180.1690.01812.61
5.3.170.1740.01312.64
5.3.160.1690.02112.47
5.3.150.1720.01512.66
5.3.140.1650.01812.58
5.3.130.2130.02012.64
5.3.120.1970.02212.64
5.3.110.2170.02412.57
5.3.100.2030.02012.34
5.3.90.1910.02212.36
5.3.80.1670.02012.21
5.3.70.1660.02112.26
5.3.60.1620.02312.37
5.3.50.1830.01712.25
5.3.40.1890.01812.22
5.3.30.1620.01812.12
5.3.20.1690.01712.15
5.3.10.1710.01512.12
5.3.00.1550.02111.97
5.2.170.1720.01910.54
5.2.160.1420.01710.44
5.2.150.1340.01510.52
5.2.140.1500.01210.50
5.2.130.1370.01510.47
5.2.120.1410.01810.47
5.2.110.1450.01510.50
5.2.100.1480.01510.47
5.2.90.1390.01210.49
5.2.80.1450.02110.49
5.2.70.1480.02010.49
5.2.60.1800.01810.47
5.2.50.1840.01710.38
5.2.40.1650.01210.34
5.2.30.1570.01310.43
5.2.20.1340.01710.32
5.2.10.1320.01710.32
5.2.00.1250.01710.29
5.1.60.1220.0139.90
5.1.50.1170.0149.93
5.1.40.1090.0149.88
5.1.30.1170.01210.09
5.1.20.1150.01210.09
5.1.10.1420.0159.94
5.1.00.1230.0169.87
5.0.50.0630.0109.19
5.0.40.0570.0099.16
5.0.30.0580.0179.02
5.0.20.0560.0118.98
5.0.10.0730.0128.92
5.0.00.0650.0229.02
4.4.90.0830.0067.82
4.4.80.0780.0087.84
4.4.70.0850.0087.85
4.4.60.0690.0107.87
4.4.50.0460.0107.85
4.4.40.0570.0137.87
4.4.30.0570.0107.81
4.4.20.0620.0077.84
4.4.10.0720.0087.89
4.4.00.0610.0107.83
4.3.110.0570.0097.84
4.3.100.0570.0097.82
4.3.90.0580.0127.80
4.3.80.0680.0187.79
4.3.70.0620.0107.81
4.3.60.0580.0077.79
4.3.50.0660.0107.81
4.3.40.0520.0177.77
4.3.30.0330.0147.47
4.3.20.0300.0127.47
4.3.10.0410.0127.47
4.3.00.0390.0127.47

preferences:
46.9 ms | 401 KiB | 5 Q